aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2014-10-07 16:24:20 -0400
committerChris Mason <clm@fb.com>2014-10-07 16:24:20 -0400
commit0d4cf4e6bf29033709ae8aba4645d873ed0167cc (patch)
tree3aa07ec319bc02850d04c8aadc7881b8a62aadb4
parentf667aef6af626d0cdce0204bc7a2888e62076525 (diff)
Btrfs: fix compiles when CONFIG_BTRFS_FS_RUN_SANITY_TESTS is off
Commit fccb84c94 moved added some helpers to cleanup our sanity tests, but it looks like both Dave and I always compile with the tests enabled. This fixes things to work when they are turned off too. Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r--fs/btrfs/ctree.h3
-rw-r--r--fs/btrfs/extent_io.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index b94c1c76cd59..d557264ee974 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1818,9 +1818,8 @@ struct btrfs_root {
1818 1818
1819 u64 highest_objectid; 1819 u64 highest_objectid;
1820 1820
1821#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS 1821 /* only used with CONFIG_BTRFS_FS_RUN_SANITY_TESTS is enabled */
1822 u64 alloc_bytenr; 1822 u64 alloc_bytenr;
1823#endif
1824 1823
1825 u64 defrag_trans_start; 1824 u64 defrag_trans_start;
1826 struct btrfs_key defrag_progress; 1825 struct btrfs_key defrag_progress;
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index f40d67f5866b..6d4b938be986 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -374,7 +374,7 @@ noinline u64 find_lock_delalloc_range(struct inode *inode,
374 struct extent_io_tree *tree, 374 struct extent_io_tree *tree,
375 struct page *locked_page, u64 *start, 375 struct page *locked_page, u64 *start,
376 u64 *end, u64 max_bytes); 376 u64 *end, u64 max_bytes);
377#endif
377struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, 378struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info,
378 u64 start, unsigned long len); 379 u64 start, unsigned long len);
379#endif 380#endif
380#endif