]> git.baikalelectronics.ru Git - kernel.git/commit
radix-tree: introduce radix_tree_load_root()
authorMatthew Wilcox <willy@linux.intel.com>
Sat, 21 May 2016 00:02:08 +0000 (17:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit256bd36962c58b6afc8f301ee53f42260f6b5377
tree48bf013e6dae70a848ad0f501f60855e8d77929d
parent09bbf03ad1520bb38c3641192a6e2256dd9121fe
radix-tree: introduce radix_tree_load_root()

All the tree walking functions start with some variant of this code;
centralise it in one place so we're not chasing subtly different bugs
everywhere.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com>
Cc: Jan Kara <jack@suse.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/radix-tree.c