[PATCH RFC] move_pages.2: move_pages() can return positive value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since the rework done in a49bd4d71637 ("mm, numa: rework do_pages_move"),
move_pages() can return also positive value.

Signed-off-by: Jan Stancek <jstancek@xxxxxxxxxx>
---
 man2/move_pages.2 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

https://github.com/linux-test-project/ltp/issues/388

diff --git a/man2/move_pages.2 b/man2/move_pages.2
index f2c4f7f7a269..35cf6de1ba78 100644
--- a/man2/move_pages.2
+++ b/man2/move_pages.2
@@ -157,9 +157,11 @@ The page is not present.
 .B -ENOMEM
 Unable to allocate memory on target node.
 .SH RETURN VALUE
-On success
+On success (since 4.17)
 .BR move_pages ()
-returns zero.
+returns the number of pages that could not be moved
+(i.e., a return of zero means that all pages were successfully moved,
+older kernels return 0).
 .\" FIXME . Is the following quite true: does the wrapper in numactl
 .\" do the right thing?
 On error, it returns \-1, and sets
-- 
1.8.3.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux