diff options
author | Liu Bo <[email protected]> | 2018-08-23 03:51:50 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2018-10-15 17:23:33 +0200 |
commit | e3d039656384288bbe952413d8d404b3035fe7d7 (patch) | |
tree | 0a1f7bfe1f829f2ba99c938ab0ffb03eb27fa6ac /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 5c9d028b3b174e5cf3678a7b0c14e21e51665793 (diff) |
Btrfs: delayed-refs: use rb_first_cached for ref_tree
rb_first_cached() trades an extra pointer "leftmost" for doing the same
job as rb_first() but in O(1).
Functions manipulating href->ref_tree need to get the first entry, this
converts href->ref_tree 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