diff options
author | Robbie Ko <robbieko@synology.com> | 2024-10-24 05:31:42 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-11-11 16:34:19 +0300 |
commit | 1d16c2761bcc412ae4d9fb9fd9934cd426814191 (patch) | |
tree | 2b29dc4e6c97e079087e76f8cad190704d14ac61 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6e6ecdec22645db64d14c25915444f238d98da0d (diff) | |
download | linux-1d16c2761bcc412ae4d9fb9fd9934cd426814191.tar.xz |
btrfs: reduce extent tree lock contention when searching for inline backref
When inserting extent backref, in order to check whether refs other than
inline refs are used, we always use path keep locks for tree search, which
will increase the lock contention of extent tree.
We do not need the parent node every time to determine whether normal
refs are used. It is only needed when the extent item is the last item
in a leaf.
Therefore, we change it to first use keep_locks=0 for search. If the
extent item happens to be the last item in the leaf, we then change to
keep_locks=1 for the second search to reduce lock contention.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Robbie Ko <robbieko@synology.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions