]> git.hungrycats.org Git - linux/commit
btrfs: drop log root for dropped roots
authorJosef Bacik <josef@toxicpanda.com>
Wed, 4 Dec 2019 14:08:54 +0000 (06:08 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Wed, 4 Dec 2019 16:49:22 +0000 (08:49 -0800)
commitbf9e615215bbc2fd06c24e10fe2171921d9196cd
tree6d4264c24baef0feb45df9a9910cd48d250e8b75
parent2510ce487cb15453808c23f4162dd42f78a0d049
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.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
fs/btrfs/transaction.c