diff options
author | David Sterba <dsterba@suse.com> | 2016-07-15 15:23:37 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 13:52:25 +0200 |
commit | 05653ef38659edc46a886c9bda105e64edba6896 (patch) | |
tree | ae523fd51224bf32e0aa53abe4af076b8d1247f7 /fs/btrfs/extent-tree.c | |
parent | btrfs: Ratelimit "no csum found" info message (diff) | |
download | linux-05653ef38659edc46a886c9bda105e64edba6896.tar.xz linux-05653ef38659edc46a886c9bda105e64edba6896.zip |
btrfs: hide test-only member under ifdef
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 3bb9607edc5d..81d83300c99b 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -8354,6 +8354,7 @@ struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, bool skinny_metadata = btrfs_fs_incompat(root->fs_info, SKINNY_METADATA); +#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS if (btrfs_test_is_dummy_root(root)) { buf = btrfs_init_new_buffer(trans, root, root->alloc_bytenr, level); @@ -8361,6 +8362,7 @@ struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, root->alloc_bytenr += blocksize; return buf; } +#endif block_rsv = use_block_rsv(trans, root, blocksize); if (IS_ERR(block_rsv)) |