• Josef Bacik's avatar
    Btrfs: introduce mount option no_space_cache · 73bc1876
    Josef Bacik authored
    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: default avatarJosef Bacik <josef@redhat.com>
    73bc1876
super.c 33.8 KB