]> bbs.cooldavid.org Git - net-next-2.6.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)
commit88c2ba3b069f1e0f4694124d02985fa7620a19f1
treee41859aca299e14e2658d75e2bf1ef2aea9ab077
parent67377734fd24c32cbdfeb697c2e2bd7fed519e75
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