]> git.baikalelectronics.ru Git - kernel.git/commit
fs: Add IOCB_NOIO flag for generic_file_read_iter
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 21 Nov 2019 23:25:07 +0000 (23:25 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 7 Jul 2020 21:40:08 +0000 (23:40 +0200)
commit58aed0853f513002f778f7c0bb16e676b9fb9ca6
tree2e9b94061e69e326b30a5f8eabc350258f24c69a
parent7952384771d28acf3a2e59e7e19595e6dca1c650
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>
include/linux/fs.h
mm/filemap.c