aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJeff Mahoney <[email protected]>2015-06-15 13:41:18 +0000
committerChris Mason <[email protected]>2015-07-29 15:15:27 +0000
commite44163e177960ee60e32a73bffdd53c3a5827406 (patch)
treeffc55e93df052f4077f70ca996f2147dbb940237 /fs/btrfs/dev-replace.c
parentbtrfs: iterate over unused chunk space in FITRIM (diff)
downloadkernel-e44163e177960ee60e32a73bffdd53c3a5827406.tar.gz
kernel-e44163e177960ee60e32a73bffdd53c3a5827406.zip
btrfs: explictly delete unused block groups in close_ctree and ro-remount
The cleaner thread may already be sleeping by the time we enter close_ctree. If that's the case, we'll skip removing any unused block groups queued for removal, even during a normal umount. They'll be cleaned up automatically at next mount, but users expect a umount to be a clean synchronization point, especially when used on thin-provisioned storage with -odiscard. We also explicitly remove unused block groups in the ro-remount path for the same reason. Signed-off-by: Jeff Mahoney <[email protected]> Reviewed-by: Filipe Manana <[email protected]> Tested-by: Filipe Manana <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions