f2fs: support iopoll method
authorWu Bo <bo.wu@vivo.com>
Thu, 13 Apr 2023 10:17:11 +0000 (18:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 13 Apr 2023 23:38:18 +0000 (16:38 -0700)
Wire up the iopoll method to the common implementation.
As f2fs use common dio infrastructure:
commit a1e09b03e6f5 ("f2fs: use iomap for direct I/O")

Signed-off-by: Wu Bo <bo.wu@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c

index 48a563c..1b44112 100644 (file)
@@ -4908,6 +4908,7 @@ const struct file_operations f2fs_file_operations = {
        .llseek         = f2fs_llseek,
        .read_iter      = f2fs_file_read_iter,
        .write_iter     = f2fs_file_write_iter,
+       .iopoll         = iocb_bio_iopoll,
        .open           = f2fs_file_open,
        .release        = f2fs_release_file,
        .mmap           = f2fs_file_mmap,