diff options
author | Liu Bo <[email protected]> | 2018-08-23 03:51:51 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2018-10-15 17:23:33 +0200 |
commit | 03a1d4c891634dd5b98da865fb783e8b22d4d027 (patch) | |
tree | 13f08f751243f45acad6274532bc959e2ab37c55 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | e3d039656384288bbe952413d8d404b3035fe7d7 (diff) |
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 <[email protected]>
Signed-off-by: Liu Bo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions