Btrfs: add sanity test for outstanding_extents accounting
authorJosef Bacik <jbacik@fb.com>
Mon, 16 Mar 2015 21:38:52 +0000 (17:38 -0400)
committerJosef Bacik <jbacik@fb.com>
Tue, 17 Mar 2015 20:36:31 +0000 (16:36 -0400)
commit6a3891c551268dd4ff0969b883c4c8b8d974db8f
treee9727d171e09a8468fc8ac759de743b84e018ad6
parentbcb7e449ec6350121ac7ca138c0b050ba7caca47
Btrfs: add sanity test for outstanding_extents accounting

I introduced a regression wrt outstanding_extents accounting.  These are tricky
areas that aren't easily covered by xfstests as we could change MAX_EXTENT_SIZE
at any time.  So add sanity tests to cover the various conditions that are
tricky in order to make sure we don't introduce regressions in the future.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/tests/inode-tests.c