summaryrefslogtreecommitdiff
path: root/fs/iomap/direct-io.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-04-30 08:55:21 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-30 21:20:36 +0300
commit7a60d6d7b34ebf9290d495e8bb4cd57c784ffb22 (patch)
treefb4dbde0a5b777a46baf2041bbd07d30c37b9246 /fs/iomap/direct-io.c
parent63135aa3866db99fd923b716c5ff2e468879624a (diff)
downloadlinux-7a60d6d7b34ebf9290d495e8bb4cd57c784ffb22.tar.xz
mm: use filemap_range_needs_writeback() for O_DIRECT reads
For the generic page cache read helper, use the better variant of checking for the need to call filemap_write_and_wait_range() when doing O_DIRECT reads. 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-3-axboe@kernel.dk Signed-off-by: Jens Axboe <axboe@kernel.dk> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/iomap/direct-io.c')
0 files changed, 0 insertions, 0 deletions