Re: [PATCH mmotm] radix-tree: rewrite radix_tree_locate_item fix

From: Ross Zwisler
Date: Tue May 03 2016 - 16:29:09 EST


On Sun, May 01, 2016 at 09:13:18PM -0700, Hugh Dickins wrote:
> radix_tree_locate_item() is often returning the wrong index, causing
> swapoff of shmem to hang because it cannot find the swap entry there.
> __locate()'s use of base is bogus, it adds an offset twice into index.
>
> Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx>

Thank you for the fix!

Reviewed-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>