diff options
| author | 2018-08-23 03:51:51 +0800 | |
|---|---|---|
| committer | 2018-10-15 17:23:33 +0200 | |
| commit | 03a1d4c891634dd5b98da865fb783e8b22d4d027 (patch) | |
| tree | 13f08f751243f45acad6274532bc959e2ab37c55 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | Btrfs: delayed-refs: use rb_first_cached for ref_tree (diff) | |
| download | wireguard-linux-03a1d4c891634dd5b98da865fb783e8b22d4d027.tar.xz wireguard-linux-03a1d4c891634dd5b98da865fb783e8b22d4d027.zip | |
Btrfs: delayed-inode: use rb_first_cached for ins_root and del_root
rb_first_cached() trades an extra pointer "leftmost" for doing the same job as
rb_first() but in O(1).
Functions manipulating delayed_item need to get the first entry, this converts
it to use rb_first_cached().
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 '')
0 files changed, 0 insertions, 0 deletions
