aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-16 08:46:49 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-16 08:46:49 -0400
commita8a2ee0c600a213d13170c2f4d7bd0b304bbec19 (patch)
tree91c98147b03657985b386a1bad74a9d0095d2606 /fs/btrfs/ctree.c
parent1e1d27017c5986c1ea81181506042cf9cba3f6ea (diff)
Btrfs: add a name_len to dir items, reorder key
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 7edfbd468042..68f66b320a88 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -107,14 +107,14 @@ static int comp_keys(struct btrfs_disk_key *disk, struct btrfs_key *k2)
107 return 1; 107 return 1;
108 if (k1.objectid < k2->objectid) 108 if (k1.objectid < k2->objectid)
109 return -1; 109 return -1;
110 if (k1.offset > k2->offset)
111 return 1;
112 if (k1.offset < k2->offset)
113 return -1;
114 if (k1.flags > k2->flags) 110 if (k1.flags > k2->flags)
115 return 1; 111 return 1;
116 if (k1.flags < k2->flags) 112 if (k1.flags < k2->flags)
117 return -1; 113 return -1;
114 if (k1.offset > k2->offset)
115 return 1;
116 if (k1.offset < k2->offset)
117 return -1;
118 return 0; 118 return 0;
119} 119}
120 120