Btrfs: Use a chunk of the key flags to record the item type.
[linux-2.6-block.git] / fs / btrfs / root-tree.c
index 03aa7c2c6336928a11e39662872a41059771e6a9..a24b472740374b80a9c484ea66fa7efd7f1f3a92 100644 (file)
@@ -27,7 +27,7 @@ int btrfs_find_last_root(struct btrfs_root *root, u64 objectid,
        l = &path.nodes[0]->leaf;
        BUG_ON(path.slots[0] == 0);
        slot = path.slots[0] - 1;
-       if (btrfs_key_objectid(&l->items[slot].key) != objectid) {
+       if (btrfs_disk_key_objectid(&l->items[slot].key) != objectid) {
                ret = 1;
                goto out;
        }