]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8862f0ca637d3d121e730a2bf1cee512d8a7c966
treee9727d171e09a8468fc8ac759de743b84e018ad6
parentb7e1525fcf903e9e2021aa5134f73ad39c39e16f
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