repo.or.cz
/
linux-2.6
/
linux-acpi-2.6
/
ibm-acpi-2.6.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
staging: brcm80211: remove unnecessary macro defintions
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git]
/
fs
/
ceph
/
ceph_frag.c
blob
bdce8b1fbd06794d9de7be918c9ab8aab97bcbd2
1
/*
2
* Ceph 'frag' type
3
*/
4
#include <linux/module.h>
5
#include <linux/ceph/types.h>
6
7
int
ceph_frag_compare
(
__u32 a
,
__u32 b
)
8
{
9
unsigned
va
=
ceph_frag_value
(
a
);
10
unsigned
vb
=
ceph_frag_value
(
b
);
11
if
(
va
<
vb
)
12
return
-
1
;
13
if
(
va
>
vb
)
14
return
1
;
15
va
=
ceph_frag_bits
(
a
);
16
vb
=
ceph_frag_bits
(
b
);
17
if
(
va
<
vb
)
18
return
-
1
;
19
if
(
va
>
vb
)
20
return
1
;
21
return
0
;
22
}