From 7f8fa198ca16a2ade695462b9df35b0c9bdcd545 Mon Sep 17 00:00:00 2001 From: Xiaoguang Wang Date: Mon, 17 Feb 2020 16:28:28 +0800 Subject: [PATCH 0753/2944] ext4: start to support iopoll method Since commit "b1b4705d54ab ext4: introduce direct I/O read using iomap infrastructure", we can easily make ext4 support iopoll method, just use iomap_dio_iopoll(). Reviewed-by: Jan Kara Signed-off-by: Xiaoguang Wang Acked-by: Joseph Qi --- fs/ext4/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 611ec31..07abf08 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -874,6 +874,7 @@ loff_t ext4_llseek(struct file *file, loff_t offset, int whence) .llseek = ext4_llseek, .read_iter = ext4_file_read_iter, .write_iter = ext4_file_write_iter, + .iopoll = iomap_dio_iopoll, .unlocked_ioctl = ext4_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = ext4_compat_ioctl, -- 1.8.3.1