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

2016-05-03 Thread Ross Zwisler
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: H

[PATCH mmotm] radix-tree: rewrite radix_tree_locate_item fix

2016-05-01 Thread Hugh Dickins
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 --- Fix to radix-tree-rewrite-radix_tree_locate_item.patch