]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Add a clear_cache mount option
authorJosef Bacik <josef@redhat.com>
Tue, 21 Sep 2010 18:21:34 +0000 (14:21 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 13:26:36 +0000 (09:26 -0400)
commit81b05db49afb00aad55223f0c162a1f537851afc
treee41859aca299e14e2658d75e2bf1ef2aea9ab077
parentdaa3d13dcf2d7b4948e6a5e5b98d757ed0a3af1a
Btrfs: Add a clear_cache mount option

If something goes wrong with the free space cache we need a way to make sure
it's not loaded on mount and that it's cleared for everybody.  When you pass the
clear_cache option it will make it so all block groups are setup to be cleared,
which keeps them from being loaded and then they will be truncated when the
transaction is committed.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/super.c