diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2021-07-12 12:06:14 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-10-24 15:26:06 +0200 |
commit | 3337ab08d08b1a375f88471d9c8b1cac968cb054 (patch) | |
tree | d59b8bcd05c76e7f7924a4d9eb587e3e2791b268 /include/linux/uio.h | |
parent | 55b8fe703bc51200d4698596c90813453b35ae63 (diff) |
iov_iter: Introduce nofault flag to disable page faults
Introduce a new nofault flag to indicate to iov_iter_get_pages not to
fault in user pages.
This is implemented by passing the FOLL_NOFAULT flag to get_user_pages,
which causes get_user_pages to fail when it would otherwise fault in a
page. We'll use the ->nofault flag to prevent iomap_dio_rw from faulting
in pages when page faults are not allowed.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'include/linux/uio.h')
-rw-r--r-- | include/linux/uio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/uio.h b/include/linux/uio.h index 25d1c24fd829..6350354f97e9 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -35,6 +35,7 @@ struct iov_iter_state { struct iov_iter { u8 iter_type; + bool nofault; bool data_source; size_t iov_offset; size_t count; |