]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: account block group tree when calculating global reserve size
authorFilipe Manana <fdmanana@suse.com>
Thu, 20 Jul 2023 11:44:33 +0000 (12:44 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 20 Jul 2023 17:22:54 +0000 (19:22 +0200)
commit8dbfc14fc736eb701089aff09645c3d4ad3decb1
tree82540e9b2817bb828a14909a0e820f9fee4f133c
parent95ca6599a589ee84c69f02d0e1d928c8d1367fb1
btrfs: account block group tree when calculating global reserve size

When using the block group tree feature, this tree is a critical tree just
like the extent, csum and free space trees, and just like them it uses the
delayed refs block reserve.

So take into account the block group tree, and its current size, when
calculating the size for the global reserve.

CC: stable@vger.kernel.org # 6.1+
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-rsv.c