|
@@ -305,7 +305,8 @@ static int frag_tree_split_cmp(const void *l, const void *r)
|
|
|
{
|
|
|
struct ceph_frag_tree_split *ls = (struct ceph_frag_tree_split*)l;
|
|
|
struct ceph_frag_tree_split *rs = (struct ceph_frag_tree_split*)r;
|
|
|
- return ceph_frag_compare(ls->frag, rs->frag);
|
|
|
+ return ceph_frag_compare(le32_to_cpu(ls->frag),
|
|
|
+ le32_to_cpu(rs->frag));
|
|
|
}
|
|
|
|
|
|
static bool is_frag_child(u32 f, struct ceph_inode_frag *frag)
|