summaryrefslogtreecommitdiff
path: root/fs/btrfs/free-space-cache.h
diff options
context:
space:
mode:
authorBoris Burkov <boris@bur.io>2020-11-18 15:06:21 -0800
committerDavid Sterba <dsterba@suse.com>2020-12-09 19:16:08 +0100
commit8b228324a8ce03083a034dfa784bc10696ce7489 (patch)
tree66d63f53a2727690411e86495caa7d49c9f9ecf8 /fs/btrfs/free-space-cache.h
parent8cd2908846d11af9b33246171f71a923d35eb3c4 (diff)
btrfs: clear free space tree on ro->rw remount
A user might want to revert to v1 or nospace_cache on a root filesystem, and much like turning on the free space tree, that can only be done remounting from ro->rw. Support clearing the free space tree on such mounts by moving it into the shared remount logic. Since the CLEAR_CACHE option sticks around across remounts, this change would result in clearing the tree for ever on every remount, which is not desirable. To fix that, add CLEAR_CACHE to the oneshot options we clear at mount end, which has the other bonus of not cluttering the /proc/mounts output with clear_cache. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Boris Burkov <boris@bur.io> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/free-space-cache.h')
0 files changed, 0 insertions, 0 deletions