btrfs: tests, use BTRFS_FS_STATE_DUMMY_FS_INFO instead of dummy root
[linux-2.6-block.git] / fs / btrfs / backref.c
index 1ac8a3c7f68e8a5ba509abf078d419861898a3a7..2b88439c2ee864ffcec7a1e43f6e620a729bdbff 100644 (file)
@@ -361,7 +361,7 @@ static int __resolve_indirect_ref(struct btrfs_fs_info *fs_info,
                goto out;
        }
 
-       if (btrfs_test_is_dummy_root(root)) {
+       if (btrfs_is_testing(fs_info)) {
                srcu_read_unlock(&fs_info->subvol_srcu, index);
                ret = -ENOENT;
                goto out;