diff options
author | 2013-08-09 13:04:56 +0100 | |
---|---|---|
committer | 2013-08-23 09:02:14 -0400 | |
commit | f722063ee01c0060488e1000006405449451cfa0 (patch) | |
tree | affc57a30e5db203fac2133344e29c0dad4865e5 /tools/perf/scripts/python/syscall-counts.py | |
parent | dm btree: prefetch child nodes when walking tree for a dm_btree_del (diff) | |
download | wireguard-linux-f722063ee01c0060488e1000006405449451cfa0.tar.xz wireguard-linux-f722063ee01c0060488e1000006405449451cfa0.zip |
dm space map: optimise sm_ll_dec and sm_ll_inc
Prior to this patch these methods did a lookup followed by an insert.
Instead they now call a common mutate function that adjusts the value
according to a callback function. This avoids traversing the data
structures twice and hence improves performance.
Also factor out sm_ll_lookup_big_ref_count() for use by both
sm_ll_lookup() and sm_ll_mutate().
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions