From 10ca93ec2a226e0719661eb5517cfb3a3568d4e1 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Wed, 20 May 2020 13:14:47 -0400 Subject: [PATCH] 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 --- include/linux/xarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/xarray.h b/include/linux/xarray.h index b2b76b3e427d..4e8a2f5c5d7e 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); } /** -- 2.50.1