]> git.baikalelectronics.ru Git - kernel.git/commit
radix-tree: rename indirect_to_ptr() to entry_to_node()
authorMatthew Wilcox <willy@linux.intel.com>
Sat, 21 May 2016 00:03:27 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit9dc3d2e98fa6eed6d9e5b0a5d50884a99ae1aa88
treeeae410dd9f1b23d16b2cd646065f93653bb48b5e
parentb0e9510afef099fd4ba98a4c24eb9105f8ec4aa7
radix-tree: rename indirect_to_ptr() to entry_to_node()

Mirrors the earlier commit introducing node_to_entry().

Also change the type returned to be a struct radix_tree_node pointer.
That lets us simplify a couple of places in the radix tree shrink &
extend paths where we could convert an entry into a pointer, modify the
node, then convert the pointer back into an entry.

Signed-off-by: Matthew Wilcox <willy@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>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/radix-tree.h
lib/radix-tree.c
tools/testing/radix-tree/test.c
tools/testing/radix-tree/test.h