diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2019-11-21 23:25:07 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2020-07-07 23:40:08 +0200 |
commit | 41da51bce36f44eefc1e3d0f47d18841cbd065ba (patch) | |
tree | 2e9b94061e69e326b30a5f8eabc350258f24c69a /include | |
parent | dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 (diff) |
fs: Add IOCB_NOIO flag for generic_file_read_iter
Add an IOCB_NOIO flag that indicates to generic_file_read_iter that it
shouldn't trigger any filesystem I/O for the actual request or for
readahead. This allows to do tentative reads out of the page cache as
some filesystems allow, and to take the appropriate locks and retry the
reads only if the requested pages are not cached.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 3f881a892ea7..4b7cb76e5837 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -315,6 +315,7 @@ enum rw_hint { #define IOCB_SYNC (1 << 5) #define IOCB_WRITE (1 << 6) #define IOCB_NOWAIT (1 << 7) +#define IOCB_NOIO (1 << 9) struct kiocb { struct file *ki_filp; |