[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cc48623f-329b-ec43-a85a-d9a914ca87bc@oracle.com>
Date: Fri, 17 Jan 2020 17:38:10 -0800
From: Mike Kravetz <mike.kravetz@...cle.com>
To: Wei Yang <richardw.yang@...ux.intel.com>,
Yang Shi <shy828301@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Linux MM <linux-mm@...ck.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mm/migrate.c: also overwrite error when it is bigger than
zero
On 1/17/20 3:48 PM, Wei Yang wrote:
> This is another point I think current code is not working well. And actually,
> the behavior is not well defined or our kernel is broken for a while.
>
> When you look at the man page, it says:
>
> RETURN VALUE
> On success move_pages() returns zero. On error, it returns -1, and sets errno to indicate the error
>
Is this from your migrate_pages(2) man page?
The latest version of the migrate_pages(2) man page in the git repo has this
for RETURN VALUE.
RETURN VALUE
On success migrate_pages() returns the number of pages that could not
be moved (i.e., a return of zero means that all pages were successfully
moved). On error, it returns -1, and sets errno to indicate the error.
--
Mike Kravetz
Powered by blists - more mailing lists