Btrfs: add a sanity test for btrfs_split_item
authorJosef Bacik <jbacik@fusionio.com>
Thu, 19 Sep 2013 20:07:01 +0000 (16:07 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:51:02 +0000 (21:51 -0500)
commit06ea65a398a2501e94beee3a425d07e1846ff25a
treeda8445a365ceecd4df89a9d6a3da79afaa320765
parentdd3cc16b8750251ea9b1a843ce7806e82b015d5e
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>
fs/btrfs/Makefile
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/super.c
fs/btrfs/tests/btrfs-tests.h
fs/btrfs/tests/extent-buffer-tests.c [new file with mode: 0644]