]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: introduce mount option no_space_cache
authorJosef Bacik <josef@redhat.com>
Mon, 3 Oct 2011 18:07:49 +0000 (14:07 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:51 +0000 (15:12 -0400)
commitd2ca779408c0b8035c0c38678fc8072b7ee4749a
treee4e8c9a6baa656dbeb470032956657b294610c61
parent4446c08b7937c79ea800e960b4a070ad19c89e14
Btrfs: introduce mount option no_space_cache

Some users have requested this and I've found I needed a way to disable cache
loading without actually clearing the cache, so introduce the no_space_cache
option.  Before we check the super blocks cache generation field and if it was
populated we always turned space caching on.  Now we check this and set the
space cache option on, and then parse the mount options so that if we want it
off it get's turned off.  Then we check the mount option all the places we do
the caching work instead of checking the super's cache generation.  This makes
things more consistent and lets us turn space caching off.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/extent-tree.c
fs/btrfs/super.c
fs/btrfs/transaction.c