diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-10-11 14:44:09 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 21:57:30 -0500 |
commit | aaedb55bc08f384b7f57dbb3222a511baed4decf (patch) | |
tree | a82118fce66fff847e3412eae4ef7c3c3dc5c616 /fs/btrfs/tests/btrfs-tests.h | |
parent | 294e30fee35d3151d100cfe59e839c2dbc16a374 (diff) |
Btrfs: add tests for btrfs_get_extent
I'm going to be removing hole extents in the near future so I wanted to make a
sanity test for btrfs_get_extent to make sure I don't break anything in the
meantime. This patch just puts btrfs_get_extent through its paces by giving it
a completely unreasonable mapping to look at and make sure it is giving us back
maps that make sense. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/tests/btrfs-tests.h')
-rw-r--r-- | fs/btrfs/tests/btrfs-tests.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/tests/btrfs-tests.h b/fs/btrfs/tests/btrfs-tests.h index e935fe5291e7..b353bc806ca0 100644 --- a/fs/btrfs/tests/btrfs-tests.h +++ b/fs/btrfs/tests/btrfs-tests.h | |||
@@ -26,6 +26,7 @@ | |||
26 | int btrfs_test_free_space_cache(void); | 26 | int btrfs_test_free_space_cache(void); |
27 | int btrfs_test_extent_buffer_operations(void); | 27 | int btrfs_test_extent_buffer_operations(void); |
28 | int btrfs_test_extent_io(void); | 28 | int btrfs_test_extent_io(void); |
29 | int btrfs_test_inodes(void); | ||
29 | int btrfs_init_test_fs(void); | 30 | int btrfs_init_test_fs(void); |
30 | void btrfs_destroy_test_fs(void); | 31 | void btrfs_destroy_test_fs(void); |
31 | struct inode *btrfs_new_test_inode(void); | 32 | struct inode *btrfs_new_test_inode(void); |
@@ -49,6 +50,10 @@ static inline int btrfs_test_extent_io(void) | |||
49 | { | 50 | { |
50 | return 0; | 51 | return 0; |
51 | } | 52 | } |
53 | static inline int btrfs_test_inodes(void) | ||
54 | { | ||
55 | return 0; | ||
56 | } | ||
52 | #endif | 57 | #endif |
53 | 58 | ||
54 | #endif | 59 | #endif |