From: Liam R. Howlett Date: Wed, 20 May 2020 17:14:47 +0000 (-0400) Subject: xarray: Change range of xa_is_advanced X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6064cb2576af002d8a156b68ec9967988cf1789d;p=users%2Fjedix%2Flinux-maple.git xarray: Change range of xa_is_advanced XA_ZERO_ENTRY is the is largest advanced internal entry. Return true if an internal entry is less than the XA_ZERO_ENTRY. Signed-off-by: Liam R. Howlett --- diff --git a/include/linux/xarray.h b/include/linux/xarray.h index b2b76b3e427db..4e8a2f5c5d7e6 100644 --- a/include/linux/xarray.h +++ b/include/linux/xarray.h @@ -1295,7 +1295,7 @@ static inline bool xa_is_deleted(const void *entry) */ static inline bool xa_is_advanced(const void *entry) { - return xa_is_internal(entry) && (entry <= XA_RETRY_ENTRY); + return xa_is_internal(entry) && (entry < XA_ZERO_ENTRY); } /**