diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index b166ee0763b6..3f0311bb4d34 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -1744,7 +1744,7 @@ static void btrfs_set_bit_hook(struct inode *inode, | |||
1744 | } | 1744 | } |
1745 | 1745 | ||
1746 | /* For sanity tests */ | 1746 | /* For sanity tests */ |
1747 | if (btrfs_test_is_dummy_root(root)) | 1747 | if (btrfs_is_testing(root->fs_info)) |
1748 | return; | 1748 | return; |
1749 | 1749 | ||
1750 | __percpu_counter_add(&root->fs_info->delalloc_bytes, len, | 1750 | __percpu_counter_add(&root->fs_info->delalloc_bytes, len, |
@@ -1803,7 +1803,7 @@ static void btrfs_clear_bit_hook(struct inode *inode, | |||
1803 | btrfs_delalloc_release_metadata(inode, len); | 1803 | btrfs_delalloc_release_metadata(inode, len); |
1804 | 1804 | ||
1805 | /* For sanity tests. */ | 1805 | /* For sanity tests. */ |
1806 | if (btrfs_test_is_dummy_root(root)) | 1806 | if (btrfs_is_testing(root->fs_info)) |
1807 | return; | 1807 | return; |
1808 | 1808 | ||
1809 | if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID | 1809 | if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID |