mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
btrfs: reduce block group critical section in btrfs_free_reserved_bytes()
[ Upstream commit8b6fa164ab] There's no need to update the space_info fields (bytes_reserved, max_extent_size, bytes_readonly, bytes_zone_unusable) while holding the block group's spinlock. So move those updates to happen after we unlock the block group (and while holding the space_info locked of course), so that all we do under the block group's critical section is to update the block group itself. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Stable-dep-of:5870ec7c8f("btrfs: reset block group size class when it becomes empty") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
38944f3c50
commit
74fcfce2a5
1 changed files with 9 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue