Thread (2 messages) flat view 2 messages, 2 authors, 2015-06-29

Re: [PATCH] mm: fix status code move_pages() returns for zero page

From: Christoph Lameter <hidden>
Date: 2015-06-29 14:59:07
Also in: linux-mm, lkml

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 <redacted>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help