]> git.baikalelectronics.ru Git - kernel.git/commit
radix-tree: fix deleting a multi-order entry through an alias
authorMatthew Wilcox <willy@linux.intel.com>
Sat, 21 May 2016 00:02:02 +0000 (17:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit776feab97d26579fae85f79ba5918631dfe09b2d
tree95e021c42ea084842b033b590d9843fb08efb4eb
parent750e19b76080e92e1dbf18e5b36de24be8f9c0d7
radix-tree: fix deleting a multi-order entry through an alias

If we deleted an entry through an index which looked up a sibling
pointer, we'd end up zeroing out the wrong slots in the node.  Use
get_slot_offset() to find the right slot.

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