summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-10-17 18:54:12 +0300
committerDavid Sterba <dsterba@suse.com>2025-11-25 00:09:14 +0300
commit8ab2b8bdbecaaf1b01adc5cfc13534a04917515d (patch)
treedd459c7509b75b9f56728db83ec00e9e8766963d /include/linux
parent49f204be223b8bae5dd3d99f86c1ea649ce58aab (diff)
downloadlinux-8ab2b8bdbecaaf1b01adc5cfc13534a04917515d.tar.xz
btrfs: increment loop count outside critical section during metadata reclaim
In btrfs_preempt_reclaim_metadata_space() there's no need to increment the local variable that tracks the number of iterations of the while loop while inside the critical section delimited by the space_info's spinlock. That spinlock is heavily used by space reservation and flushing code, so it's desirable to have its critical sections as short as possible. So move the loop count incremented outside the 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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions