aboutsummaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-04-29 22:55:24 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-30 11:20:36 -0700
commit985b71db17506c668e5a9bd9fc700c95640dc191 (patch)
treed0aeec86c88f02b08c6b3f8d8d37db5fd30f313e /mm/util.c
parentmm: use filemap_range_needs_writeback() for O_DIRECT reads (diff)
downloadlinux-rng-985b71db17506c668e5a9bd9fc700c95640dc191.tar.xz
linux-rng-985b71db17506c668e5a9bd9fc700c95640dc191.zip
iomap: use filemap_range_needs_writeback() for O_DIRECT reads
For reads, use the better variant of checking for the need to call filemap_write_and_wait_range() when doing O_DIRECT. This avoids falling back to the slow path for IOCB_NOWAIT, if there are no pages to wait for (or write out). Link: https://lkml.kernel.org/r/20210224164455.1096727-4-axboe@kernel.dk Signed-off-by: Jens Axboe <axboe@kernel.dk> Reviewed-by: Jan Kara <jack@suse.cz> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions