summaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-09-24 19:37:28 +0300
committerDavid Sterba <dsterba@suse.com>2024-11-11 16:34:13 +0300
commitc5e268022465c6a6fa8dac88e6b6fd17e2386b35 (patch)
tree738babc46bbe1bf71ec1d36314fa67f9c06f9d6f /fs/btrfs/dev-replace.c
parentfad884b0c821d60046d03791e7032112142fd37e (diff)
downloadlinux-c5e268022465c6a6fa8dac88e6b6fd17e2386b35.tar.xz
btrfs: remove unnecessary delayed refs locking at btrfs_qgroup_trace_extent()
There's no need to hold the delayed refs spinlock when calling btrfs_qgroup_trace_extent_nolock() from btrfs_qgroup_trace_extent(), since it doesn't change anything in delayed refs and it only changes the xarray used to track qgroup extent records, which is protected by the xarray's lock. Holding the lock is only adding unnecessary lock contention with other tasks that actually need to take the lock to add/remove/change delayed references. So remove the locking. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions