btrfs-progs: use symbolic name for first inode number when searching
authorDavid Sterba <dsterba@suse.com>
Mon, 31 Oct 2016 10:01:23 +0000 (11:01 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 14 Dec 2016 14:06:34 +0000 (15:06 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c

index 26ddef3..905fe53 100644 (file)
@@ -4942,7 +4942,7 @@ static int check_fs_first_inode(struct btrfs_root *root, unsigned int ext_ref)
        path = btrfs_alloc_path();
        if (!path)
                return -ENOMEM;
-       key.objectid = 256;
+       key.objectid = BTRFS_FIRST_FREE_OBJECTID;
        key.type = BTRFS_INODE_ITEM_KEY;
        key.offset = 0;