Skip to contentSkip to conversation

move_pages.2: remove ENOENT from the list of possible return values

PATCH In review John Hubbard 2 participants 2 messages Dec 19, 2019 – Dec 30, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 move_pages.2: remove ENOENT from the list of possible return values

Linux kernel commit e78bbfa82624 ("mm: stop returning -ENOENT from sys_move_pages() if nothing got migrated") had the effect of *never* returning -ENOENT, in any situation. So we need to update the man page to reflect that ENOENT is not a possible return value.

---

Hi,

This fix for the man page was ACK'd by Michal, here:

https://lore.kernel.org/r/[email protected]

thanks,
John Hubbard
NVIDIA

 man2/move_pages.2 | 6 ------
 1 file changed, 6 deletions(-)
man2/move_pages.2 +0 -6
index 2d96468fa..1bf1053f2 100644
@@ -191,12 +191,6 @@ was specified or an attempt was made to migrate pages of a kernel thread.
 .B ENODEV
 One of the target nodes is not online.
 .TP
-.B ENOENT
-No pages were found that require moving.
-All pages are either already
-on the target node, not present, had an invalid address or could not be
-moved because they were mapped by multiple processes.
-.TP
 .B EPERM
 The caller specified
 .B MPOL_MF_MOVE_ALL
Signature · 1 line
2.24.1
#1 lore raw

Hello John,

Quoted 10 lines · John Hubbard

Linux kernel commit e78bbfa82624 ("mm: stop returning -ENOENT from sys_move_pages() if nothing got migrated") had the effect of *never* returning -ENOENT, in any situation. So we need to update the man page to reflect that ENOENT is not a possible return value.

Quoted 7 lines

---

Hi,

This fix for the man page was ACK'd by Michal, here:

https://lore.kernel.org/r/[email protected]

Thanks. Patch applied.

Cheers,

Michael

Quoted 21 lines
 man2/move_pages.2 | 6 ------
 1 file changed, 6 deletions(-)
man2/move_pages.2 +0 -6
index 2d96468fa..1bf1053f2 100644
@@ -191,12 +191,6 @@ was specified or an attempt was made to migrate pages of a kernel thread.
 .B ENODEV
 One of the target nodes is not online.
 .TP
-.B ENOENT
-No pages were found that require moving.
-All pages are either already
-on the target node, not present, had an invalid address or could not be
-moved because they were mapped by multiple processes.
-.TP
 .B EPERM
 The caller specified
 .B MPOL_MF_MOVE_ALL
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/