diff options
author | yangyun <[email protected]> | 2024-08-14 17:36:00 +0800 |
---|---|---|
committer | Miklos Szeredi <[email protected]> | 2024-08-29 11:43:12 +0200 |
commit | ac5cffec53be0b0231b89470a357bd3a5814f599 (patch) | |
tree | bc01f2777592b950dc84062994c5e8ba5a5c16ff /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 5de8acb41c86f1d335d165e0a350441ea3a1f480 (diff) |
fuse: add fast path for fuse_range_is_writeback
In some cases, the fi->writepages may be empty. And there is no need
to check fi->writepages with spin_lock, which may have an impact on
performance due to lock contention. For example, in scenarios where
multiple readers read the same file without any writers, or where
the page cache is not enabled.
Also remove the outdated comment since commit 6b2fb79963fb ("fuse:
optimize writepages search") has optimize the situation by replacing
list with rb-tree.
Signed-off-by: yangyun <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions