diff options
| author | 2018-08-23 03:51:52 +0800 | |
|---|---|---|
| committer | 2018-10-15 17:23:33 +0200 | |
| commit | 07e1ce096db3605f3e0c98695df66a51e2be9f05 (patch) | |
| tree | 3e4a910cd136c1b6666d3be7e33b826dbd016db6 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | Btrfs: delayed-inode: use rb_first_cached for ins_root and del_root (diff) | |
| download | wireguard-linux-07e1ce096db3605f3e0c98695df66a51e2be9f05.tar.xz wireguard-linux-07e1ce096db3605f3e0c98695df66a51e2be9f05.zip | |
Btrfs: extent_map: use rb_first_cached
rb_first_cached() trades an extra pointer "leftmost" for doing the
same job as rb_first() but in O(1).
As evict_inode_truncate_pages() removes all extent mapping by always
looking for the first rb entry, it's helpful to use rb_first_cached
instead.
For more details about the optimization see patch "Btrfs: delayed-refs:
use rb_first_cached for href_root".
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions
