]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rbtree: move augmented rbtree functionality to rbtree_augmented.h
authorMichel Lespinasse <walken@google.com>
Thu, 13 Sep 2012 00:58:54 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 07:27:58 +0000 (17:27 +1000)
commit58e7853b66117fcc30c1784755495b79286fdc7b
tree2bdcbd426279be1cc966b1b4d100af3282433570
parentee36d49a21503ebc1612e9a4a6b7b6041a570a34
rbtree: move augmented rbtree functionality to rbtree_augmented.h

Provide rb_insert_augmented() and rb_erase_augmented through a new
rbtree_augmented.h include file.  rb_erase_augmented() is defined there as
an __always_inline function, in order to allow inlining of augmented
rbtree callbacks into it.  Since this generates a relatively large
function, each augmented rbtree users should make sure to have a single
call site.

Signed-off-by: Michel Lespinasse <walken@google.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/rbtree.txt
arch/x86/mm/pat_rbtree.c
include/linux/interval_tree_tmpl.h
include/linux/rbtree.h
include/linux/rbtree_augmented.h [new file with mode: 0644]
lib/rbtree.c
lib/rbtree_test.c