XArray: Fix xas_reload for multi-index entries
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 2 Aug 2020 18:17:21 +0000 (14:17 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 13 Oct 2020 12:41:26 +0000 (08:41 -0400)
commitca7b639e8611b3260a30b18aaa0d6db9c80a75ef
tree2cbbfb3b1f50df40778a0d9d7c748aada857c743
parentf82cd2f0b5eb715b1a296e20b34da7d296b6e9a4
XArray: Fix xas_reload for multi-index entries

xas_reload() was only checking that the head entry was still at the
head index.  If the entry has been split, that's not enough as there
may be a different entry at the specified index now.

Solve this by checking the slot for the requested index instead of the
head index.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/xarray.h