aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 0abed1a0caa7..e926b9fdb64a 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -1505,7 +1505,7 @@ static inline int should_cow_block(struct btrfs_trans_handle *trans,
1505 struct btrfs_root *root, 1505 struct btrfs_root *root,
1506 struct extent_buffer *buf) 1506 struct extent_buffer *buf)
1507{ 1507{
1508 if (btrfs_test_is_dummy_root(root)) 1508 if (btrfs_is_testing(root->fs_info))
1509 return 0; 1509 return 0;
1510 1510
1511 /* ensure we can see the force_cow */ 1511 /* ensure we can see the force_cow */