aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-03-21 11:13:46 +0000
committerDavid Sterba <[email protected]>2023-04-17 18:01:19 +0200
commit9aa06c7669dd45b9cd2f4df6f948108d4df1e34c (patch)
treece74318c3d9b3cfc13750aeff206e308aa9d8f6e /tools/perf/scripts/python/bin
parent5758d1bd2d320467e6d539dd693ff2b4dc07f345 (diff)
btrfs: count extents before taking inode's spinlock when reserving metadata
When reserving metadata space for delalloc (and direct IO too), at btrfs_delalloc_reserve_metadata(), there's no need to count the number of extents while holding the inode's spinlock, since that does not require access to any field of the inode. This section of code can be called concurrently, when we have direct IO writes against different file ranges that don't increase the inode's i_size, so it's beneficial to shorten the critical section by counting the number of extents before taking the inode's spinlock. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions