diff options
author | Josef Bacik <[email protected]> | 2020-01-17 09:12:45 -0500 |
---|---|---|
committer | David Sterba <[email protected]> | 2020-01-23 17:24:36 +0100 |
commit | 889bfa39086e86b52fcfaa04d72c95eaeb12f9a5 (patch) | |
tree | 63acd99db84bd4543bc0a6c64f6c30a564811fa2 /net/unix/af_unix.c | |
parent | 668e48af7a94985be7cf3b97a860d9819271d8bf (diff) |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions