]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
direct-io: don't force writeback for reads beyond EOF
authorGabriel Krisman Bertazi <krisman@collabora.com>
Thu, 8 Oct 2020 06:26:19 +0000 (02:26 -0400)
committerJan Kara <jack@suse.cz>
Thu, 8 Oct 2020 16:26:33 +0000 (18:26 +0200)
commit0a9164cb7ff32d6936f14657aebc3c4c2a0d5f9d
treebbba9006d7180638d8384c0702dd47f041b8c83e
parent46d716025a228de835a8fd51c8420e3ce3c88795
direct-io: don't force writeback for reads beyond EOF

If a DIO read starts past EOF, the kernel won't attempt it, so we don't
need to flush dirty pages before failing the syscall.

Link: https://lore.kernel.org/r/20201008062620.2928326-3-krisman@collabora.com
Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/direct-io.c