cifs: switch to ->read_iter()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index c57a9b1..f0a567a 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -907,9 +907,9 @@
};
const struct file_operations cifs_file_strict_ops = {
- .read = do_sync_read,
+ .read = new_sync_read,
.write = do_sync_write,
- .aio_read = cifs_strict_readv,
+ .read_iter = cifs_strict_readv,
.aio_write = cifs_strict_writev,
.open = cifs_open,
.release = cifs_close,
@@ -927,9 +927,9 @@
const struct file_operations cifs_file_direct_ops = {
/* BB reevaluate whether they can be done with directio, no cache */
- .read = do_sync_read,
+ .read = new_sync_read,
.write = do_sync_write,
- .aio_read = cifs_user_readv,
+ .read_iter = cifs_user_readv,
.aio_write = cifs_user_writev,
.open = cifs_open,
.release = cifs_close,
@@ -964,9 +964,9 @@
};
const struct file_operations cifs_file_strict_nobrl_ops = {
- .read = do_sync_read,
+ .read = new_sync_read,
.write = do_sync_write,
- .aio_read = cifs_strict_readv,
+ .read_iter = cifs_strict_readv,
.aio_write = cifs_strict_writev,
.open = cifs_open,
.release = cifs_close,
@@ -983,9 +983,9 @@
const struct file_operations cifs_file_direct_nobrl_ops = {
/* BB reevaluate whether they can be done with directio, no cache */
- .read = do_sync_read,
+ .read = new_sync_read,
.write = do_sync_write,
- .aio_read = cifs_user_readv,
+ .read_iter = cifs_user_readv,
.aio_write = cifs_user_writev,
.open = cifs_open,
.release = cifs_close,