]> www.infradead.org Git - users/willy/xarray.git/commit
XArray: Add extra debugging check to xas_lock and friends main
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 23 Sep 2024 19:16:41 +0000 (15:16 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 23 Sep 2024 19:16:41 +0000 (15:16 -0400)
commit6684aba0780da9f505c202f27e68ee6d18c0aa66
tree14c243e7dc4d2e8d637b97eb71e6532af5f7e138
parentc88414f56c37f4afa730b81291502b2484f43550
XArray: Add extra debugging check to xas_lock and friends

While tracking down a recent bug, we discovered somewhere that had
forgotten to call xas_reset() before calling xas_lock().  Add a debug
check to be sure that doesn't happen in future.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/xarray.h
lib/xarray.c