]> git.baikalelectronics.ru Git - kernel.git/commit
gup: Introduce FOLL_NOFAULT flag to disable page faults
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 17 Aug 2021 20:52:08 +0000 (22:52 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Sun, 24 Oct 2021 13:26:05 +0000 (15:26 +0200)
commit140fd771fded7514c169556c9aff136a9f7c11af
tree9a7f9a0bcf98aea2fe8f3c7dcf483c75ffd6f6ea
parent510658e2f455c35ba299d9d9ddd8e0f6ee1b389f
gup: Introduce FOLL_NOFAULT flag to disable page faults

Introduce a new FOLL_NOFAULT flag that causes get_user_pages to return
-EFAULT when it would otherwise trigger a page fault.  This is roughly
similar to FOLL_FAST_ONLY but available on all architectures, and less
fragile.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
include/linux/mm.h
mm/gup.c