[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 10 Oct 2019 15:40:56 +0200
From: Thomas Hellström (VMware)
<thomas_os@...pmail.org>
To: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
torvalds@...ux-foundation.org, kirill@...temov.name
Cc: Thomas Hellstrom <thellstrom@...are.com>
Subject: [RFC PATCH 2/4] fs: task_mmu: Have the pagewalk avoid positive callback return codes
From: Thomas Hellstrom <thellstrom@...are.com>
The pagewalk code is being reworked to have positive callback return codes
mean "walk control". Avoid using positive return codes: "1" is replaced by
"-ENOBUFS".
Signed-off-by: Thomas Hellstrom <thellstrom@...are.com>
---
fs/proc/task_mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index 9442631fd4af..ef11969d9ba1 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -1265,7 +1265,7 @@ struct pagemapread {
#define PM_SWAP BIT_ULL(62)
#define PM_PRESENT BIT_ULL(63)
-#define PM_END_OF_BUFFER 1
+#define PM_END_OF_BUFFER (-ENOBUFS)
static inline pagemap_entry_t make_pme(u64 frame, u64 flags)
{
--
2.21.0
Powered by blists - more mailing lists