diff options
author | yangyun <yangyun50@huawei.com> | 2024-08-14 17:36:00 +0800 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-08-29 11:43:12 +0200 |
commit | ac5cffec53be0b0231b89470a357bd3a5814f599 (patch) | |
tree | bc01f2777592b950dc84062994c5e8ba5a5c16ff /tools/perf/scripts/python/export-to-sqlite.py | |
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 <yangyun50@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions