diff options
author | 2015-09-04 15:47:53 -0700 | |
---|---|---|
committer | 2015-09-04 16:54:41 -0700 | |
commit | d899844e9c98c9c74b4d9926fd3bd66a225f6978 (patch) | |
tree | f20414a3a4217e6befb38b5adeefdc2e6a4e8c00 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mm: memcontrol: bring back the VM_BUG_ON() in mem_cgroup_swapout() (diff) | |
download | wireguard-linux-d899844e9c98c9c74b4d9926fd3bd66a225f6978.tar.xz wireguard-linux-d899844e9c98c9c74b4d9926fd3bd66a225f6978.zip |
mm: fix status code which move_pages() returns for zero page
The manpage 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. The use of
FOLL_DUMP also means that the upper layer page tables pages are no longer
allocated.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions