]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rbtree: move augmented rbtree functionality to rbtree_augmented.h
authorMichel Lespinasse <walken@google.com>
Fri, 28 Sep 2012 00:19:33 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Oct 2012 03:00:06 +0000 (14:00 +1100)
commit2adaafd78294afc512b8493fcbb0899e352f50cb
treeb796c786d876594ca601461412c4504eb391ae5e
parent4263b7fdfe189f68e11d48617b4f068a431922c8
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 user 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