diff options
author | Chris Wilson <[email protected]> | 2017-12-14 15:32:28 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-12-14 16:00:48 -0800 |
commit | 338f1d9d1b829fec494d053f62820a2ee625b1ec (patch) | |
tree | 9ac2dd5f45f7e251300f677ccf669efa9ef303cd /net/unix/sysctl_net_unix.c | |
parent | c47d7f56e914900410f65835933f9fc4374d0a2b (diff) |
lib/rbtree,drm/mm: add rbtree_replace_node_cached()
Add a variant of rbtree_replace_node() that maintains the leftmost cache
of struct rbtree_root_cached when replacing nodes within the rbtree.
As drm_mm is the only rb_replace_node() being used on an interval tree,
the mistake looks fairly self-contained. Furthermore the only user of
drm_mm_replace_node() is its testsuite...
Testcase: igt/drm_mm/replace
Link: http://lkml.kernel.org/r/[email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Fixes: f808c13fd373 ("lib/interval_tree: fast overlap detection")
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Cc: Jérôme Glisse <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Daniel Vetter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions