From: Xiaoguang Wang Date: Fri, 7 Feb 2020 12:07:58 +0000 (+0800) Subject: ext4: start to support iopoll method X-Git-Tag: libata-5.7-2020-04-09~26^2~29 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=72f9da1d5c8d03d6fb242d01aae66928b2b2e7a8;p=linux-block.git 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 Link: https://lore.kernel.org/r/20200207120758.2411-1-xiaoguang.wang@linux.alibaba.com Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 5f225881176b..0d624250a62b 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -872,6 +872,7 @@ const struct file_operations ext4_file_operations = { .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,