aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaoguang Wang <[email protected]>2020-02-07 20:07:58 +0800
committerTheodore Ts'o <[email protected]>2020-03-05 15:40:15 -0500
commit72f9da1d5c8d03d6fb242d01aae66928b2b2e7a8 (patch)
treed2c4ced3d08baa6fe137f07ea422162115a6071a
parentf2eeca099bbda45029da35abecb428a9084a5463 (diff)
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 <[email protected]> Signed-off-by: Xiaoguang Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r--fs/ext4/file.c1
1 files changed, 1 insertions, 0 deletions
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,