]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: reduce block group critical section in unpin_extent_range()
authorFilipe Manana <fdmanana@suse.com>
Mon, 20 Oct 2025 14:53:01 +0000 (15:53 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:16:20 +0000 (22:16 +0100)
commit36574363b75c6adf4642dc5f33b2a33870c8da3c
tree9023fca7fa41e2d2cb5c52052c2f154e692cec98
parent4cb0abc1cf4f46f9b910ce19e79f326c1f16cecb
btrfs: reduce block group critical section in unpin_extent_range()

There's no need to update the bytes_pinned, bytes_readonly and
max_extent_size fields of the space_info while inside the critical section
delimited by the block group's lock. So move that out of the block group's
critical section, but sill inside the space_info's critical section.

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>
fs/btrfs/extent-tree.c