lkml.org 
[lkml]   [2015]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: fix status code move_pages() returns for zero page
On Wed, 24 Jun 2015, Kirill A. Shutemov wrote:

> Man page for move_pages(2) specifies that status code for zero page is
> supposed to be -EFAULT. Currently kernel return -ENOENT in this case.
>
> follow_page() can do it for us, if we would ask for FOLL_DUMP.

FOLL_DUMP also has the consequence that the upper layer page tables pages
are no longer allocated.

Otherwise this looks ok.

Reviewed-by: Christoph Lameter <cl@linux.com>


\
 
 \ /
  Last update: 2015-06-29 17:21    [W:0.067 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site