]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use btrfs_get_fs_root in resolve_indirect_ref
authorJosef Bacik <jbacik@fb.com>
Thu, 5 Nov 2015 22:37:58 +0000 (14:37 -0800)
committerChris Mason <clm@fb.com>
Wed, 25 Nov 2015 13:22:08 +0000 (05:22 -0800)
commit9a013aa7f86987136b6ef34c698f5b3135bccbbf
treed031b22a4c19005adfac46cc202d5112565ae7a8
parentde169e60855d447b877efc774f45827ec0c04ed1
Btrfs: use btrfs_get_fs_root in resolve_indirect_ref

The backref code will look up the fs_root we're trying to resolve our indirect
refs for, unfortunately we use btrfs_read_fs_root_no_name, which returns -ENOENT
if the ref is 0.  This isn't helpful for the qgroup stuff with snapshot delete
as it won't be able to search down the snapshot we are deleting, which will
cause us to miss roots.  So use btrfs_get_fs_root and send false for check_ref
so we can always get the root we're looking for.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/backref.c