diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-15 12:56:47 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-15 12:56:47 -0400 |
commit | 62e2749e03a855d98855f9ce032dbe72d5fad148 (patch) | |
tree | ed12521d1bde4ac7eda7f917b57b3cab1e76539d /fs/btrfs/root-tree.c | |
parent | a1516c8921ce2c148b69493e858d95bc79c92f01 (diff) |
Btrfs: Use a chunk of the key flags to record the item type.
Add (untested and simple) directory item code
Fix comp_keys to use the new key ordering
Add btrfs_insert_empty_item
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
-rw-r--r-- | fs/btrfs/root-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 03aa7c2c6336..a24b47274037 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -27,7 +27,7 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, | |||
27 | l = &path.nodes[0]->leaf; | 27 | l = &path.nodes[0]->leaf; |
28 | BUG_ON(path.slots[0] == 0); | 28 | BUG_ON(path.slots[0] == 0); |
29 | slot = path.slots[0] - 1; | 29 | slot = path.slots[0] - 1; |
30 | if (btrfs_key_objectid(&l->items[slot].key) != objectid) { | 30 | if (btrfs_disk_key_objectid(&l->items[slot].key) != objectid) { |
31 | ret = 1; | 31 | ret = 1; |
32 | goto out; | 32 | goto out; |
33 | } | 33 | } |