diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-21 09:52:41 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 13:54:19 +0200 |
commit | f5ee5c9ac56cd328fcc915582f81226affebd81c (patch) | |
tree | a8794c47784f0565553233353702d02fd2e5fc28 /fs/btrfs/ctree.c | |
parent | 7c0260ee098db7a05fd68812b2e21ce2e19dfcf0 (diff) |
btrfs: tests, use BTRFS_FS_STATE_DUMMY_FS_INFO instead of dummy root
Now that we have a dummy fs_info associated with each test that
uses a root, we don't need the DUMMY_ROOT bit anymore. This lets
us make choices without needing an actual root like in e.g.
btrfs_find_create_tree_block.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
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, 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 */ |