diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2015-02-12 00:27:20 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 02:06:05 +0100 |
commit | 0fd71a56f41d4ffabeda1dae9ff5ed4f34d4e935 (patch) | |
tree | bf1844624a69986ad308c298b894e1890977af91 /arch/mips/mm/gup.c | |
parent | mm: gup: add get_user_pages_locked and get_user_pages_unlocked (diff) | |
download | linux-0fd71a56f41d4ffabeda1dae9ff5ed4f34d4e935.tar.xz linux-0fd71a56f41d4ffabeda1dae9ff5ed4f34d4e935.zip |
mm: gup: add __get_user_pages_unlocked to customize gup_flags
Some callers (like KVM) may want to set the gup_flags like FOLL_HWPOSION
to get a proper -EHWPOSION retval instead of -EFAULT to take a more
appropriate action if get_user_pages runs into a memory failure.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andres Lagar-Cavilla <andreslc@google.com>
Cc: Peter Feiner <pfeiner@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/mm/gup.c')
0 files changed, 0 insertions, 0 deletions