aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r--fs/btrfs/backref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index 1ac8a3c7f68e..2b88439c2ee8 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -361,7 +361,7 @@ static int __resolve_indirect_ref(struct btrfs_fs_info *fs_info,
361 goto out; 361 goto out;
362 } 362 }
363 363
364 if (btrfs_test_is_dummy_root(root)) { 364 if (btrfs_is_testing(fs_info)) {
365 srcu_read_unlock(&fs_info->subvol_srcu, index); 365 srcu_read_unlock(&fs_info->subvol_srcu, index);
366 ret = -ENOENT; 366 ret = -ENOENT;
367 goto out; 367 goto out;