]> git.itanic.dy.fi Git - linux-stable/commit
btrfs: record delayed inode root in transaction
authorBoris Burkov <boris@bur.io>
Thu, 21 Mar 2024 17:14:24 +0000 (10:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:23:35 +0000 (11:23 +0200)
commitbe1cb5f31ef3d1d8d53a0dee94c1681f37c53d62
tree07a59dda164150e5e8da2d2edfaef8b06e893c54
parent6c95336f5d8eb9ab79cd7306d71b6d0477363f8c
btrfs: record delayed inode root in transaction

commit 71537e35c324ea6fbd68377a4f26bb93a831ae35 upstream.

When running delayed inode updates, we do not record the inode's root in
the transaction, but we do allocate PREALLOC and thus converted PERTRANS
space for it. To be sure we free that PERTRANS meta rsv, we must ensure
that we record the root in the transaction.

Fixes: 4f5427ccce5d ("btrfs: delayed-inode: Use new qgroup meta rsv for delayed inode and item")
CC: stable@vger.kernel.org # 6.1+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/delayed-inode.c