btrfs: tests, use BTRFS_FS_STATE_DUMMY_FS_INFO instead of dummy root
[cascardo/linux.git] / fs / btrfs / ctree.c
index 0abed1a..e926b9f 100644 (file)
@@ -1505,7 +1505,7 @@ static inline int should_cow_block(struct btrfs_trans_handle *trans,
                                   struct btrfs_root *root,
                                   struct extent_buffer *buf)
 {
-       if (btrfs_test_is_dummy_root(root))
+       if (btrfs_is_testing(root->fs_info))
                return 0;
 
        /* ensure we can see the force_cow */