]> 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)
commitff5c2a97d92a3bb8771aaab150c3dc86161d50ac
treee4e8c9a6baa656dbeb470032956657b294610c61
parent44ddfe5f930f622ae93c185b41bc5c3d7f5678f7
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