[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1595217437-48158-1-git-send-email-w@laoqinren.net>
Date: Mon, 20 Jul 2020 11:57:17 +0800
From: Wang Long <w@...qinren.net>
To: willy@...radead.org
Cc: w@...qinren.net, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: [PATCH] xarray: update document for error space returned by xarray normal API
In the current xarray code, the negative value -1 and -4095 represented
as an error.
xa_is_error(xa_mk_internal(-4095)) and xa_is_error(xa_mk_internal(-1))
are all return true.
This patch update the document.
Signed-off-by: Wang Long <w@...qinren.net>
---
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 b4d70e7..0588fb9 100644
--- a/include/linux/xarray.h
+++ b/include/linux/xarray.h
@@ -36,7 +36,7 @@
* 257: Zero entry
*
* Errors are also represented as internal entries, but use the negative
- * space (-4094 to -2). They're never stored in the slots array; only
+ * space (-4095 to -1). They're never stored in the slots array; only
* returned by the normal API.
*/
--
1.8.3.1
Powered by blists - more mailing lists