radix-tree: Chain preallocated nodes through ->parent
authorMatthew Wilcox <mawilcox@microsoft.com>
Mon, 16 Jan 2017 21:41:29 +0000 (16:41 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 14 Feb 2017 02:44:04 +0000 (21:44 -0500)
commit1293d5c5f54d5118fbb34fc94e01ba02fcd25fc1
treed2ff3550817eb4110766b56e4a2032e8502a0b33
parent73bc029b76482260a144219786d19951f561716e
radix-tree: Chain preallocated nodes through ->parent

Chaining through the ->private_data member means we have to zero
->private_data after removing preallocated nodes from the list.
We're about to initialise ->parent anyway, so we can avoid zeroing it.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
lib/radix-tree.c
tools/testing/radix-tree/linux.c