]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add some free space cache tests
authorJosef Bacik <jbacik@fusionio.com>
Fri, 15 Mar 2013 13:47:08 +0000 (09:47 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:52:54 +0000 (15:52 -0400)
commit759b4b341931b5d7488590ee2f9572ff59df624e
tree02ee09448bbb988baf59bed8615a9f0dcc608a5a
parent3f1c0a8417d387dcf77162decda8e65e0449a9e2
Btrfs: add some free space cache tests

We keep hitting bugs in the tree log replay because btrfs_remove_free_space
doesn't account for some corner case.  So add a bunch of tests to try and fully
test btrfs_remove_free_space since the only time it is called is during tree log
replay.  These tests all finish successfully, so as we find more of these bugs
we need to add to these tests to make sure we don't regress in fixing things.
I've hidden the tests behind a Kconfig option, but they take no time to run so
all btrfs developers should have this turned on all the time.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/Kconfig
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h
fs/btrfs/super.c