]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:34:16 +0000 (23:34 -0400)
commita196988290d69dbf6bcc389e2b18cf523ec49a7a
tree9c375710a07a2f51b34012bd17ce66e38fc0eb17
parent3bc546ae25ad5c12eaed219e4300d64b5f2ddee7
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>
(cherry picked from commit 464919a88ec615bf7f22085730ac72cfe735df0d)
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/tests/inode-tests.c