XArray: Mark xa_insert and xa_reserve as must_check
authorMatthew Wilcox <willy@infradead.org>
Fri, 8 Feb 2019 19:02:45 +0000 (14:02 -0500)
committerMatthew Wilcox <willy@infradead.org>
Sat, 9 Feb 2019 05:00:49 +0000 (00:00 -0500)
commitf818b82b80164014d7ee3df89bb110808778c796
tree36ee086ab1bd913f9a0519b1a4b8c08b7176b875
parent2fa044e51a1f35d7b04cbde07ec513b0ba195e38
XArray: Mark xa_insert and xa_reserve as must_check

If the user doesn't care about the return value from xa_insert(), then
they should be using xa_store() instead.  The point of xa_reserve() is
to get the return value early before taking another lock, so this should
also be __must_check.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
include/linux/xarray.h
lib/test_xarray.c