aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2020-01-17 14:12:45 +0000
committerDavid Sterba <[email protected]>2020-01-23 16:24:36 +0000
commit889bfa39086e86b52fcfaa04d72c95eaeb12f9a5 (patch)
tree63acd99db84bd4543bc0a6c64f6c30a564811fa2 /fs/btrfs/dev-replace.c
parentbtrfs: sysfs, add devid/dev_state kobject and device attributes (diff)
downloadkernel-889bfa39086e86b52fcfaa04d72c95eaeb12f9a5.tar.gz
kernel-889bfa39086e86b52fcfaa04d72c95eaeb12f9a5.zip
btrfs: drop log root for dropped roots
If we fsync on a subvolume and create a log root for that volume, and then later delete that subvolume we'll never clean up its log root. Fix this by making switch_commit_roots free the log for any dropped roots we encounter. The extra churn is because we need a btrfs_trans_handle, not the btrfs_transaction. CC: [email protected] # 5.4+ Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions