diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-09-20 00:07:01 +0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-12 06:51:02 +0400 |
commit | 06ea65a398a2501e94beee3a425d07e1846ff25a (patch) | |
tree | da8445a365ceecd4df89a9d6a3da79afaa320765 /fs/btrfs/super.c | |
parent | dd3cc16b8750251ea9b1a843ce7806e82b015d5e (diff) | |
download | linux-06ea65a398a2501e94beee3a425d07e1846ff25a.tar.xz |
Btrfs: add a sanity test for btrfs_split_item
While looking at somebodys corruption I became completely convinced that
btrfs_split_item was broken, so I wrote this test to verify that it was working
as it was supposed to. Thankfully it appears to be working as intended, so just
add this test to make sure nobody breaks it in the future. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index e913328d0f2a..0e398657d759 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1789,7 +1789,12 @@ static void btrfs_print_info(void) static int btrfs_run_sanity_tests(void) { - return btrfs_test_free_space_cache(); + int ret; + + ret = btrfs_test_free_space_cache(); + if (ret) + return ret; + return btrfs_test_extent_buffer_operations(); } static int __init init_btrfs_fs(void) |