diff options
| author | Boris Burkov <[email protected]> | 2020-11-18 23:06:21 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-12-09 18:16:08 +0000 |
| commit | 8b228324a8ce03083a034dfa784bc10696ce7489 (patch) | |
| tree | 66d63f53a2727690411e86495caa7d49c9f9ecf8 /fs/btrfs/dev-replace.c | |
| parent | btrfs: clear oneshot options on mount and remount (diff) | |
| download | kernel-8b228324a8ce03083a034dfa784bc10696ce7489.tar.gz kernel-8b228324a8ce03083a034dfa784bc10696ce7489.zip | |
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 <[email protected]>
Signed-off-by: Boris Burkov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
