Skip to content

Commit 0279782

Browse files
author
Al Viro
committed
ecryptfs: switch to ->read_iter()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent b4f5d2c commit 0279782

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎fs/ecryptfs/file.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@
4545
* The function to be used for directory reads is ecryptfs_read.
4646
*/
4747
static ssize_t ecryptfs_read_update_atime(struct kiocb *iocb,
48-
const struct iovec *iov,
49-
unsigned long nr_segs, loff_t pos)
48+
struct iov_iter *to)
5049
{
5150
ssize_t rc;
5251
struct path *path;
5352
struct file *file = iocb->ki_filp;
5453

55-
rc = generic_file_aio_read(iocb, iov, nr_segs, pos);
54+
rc = generic_file_read_iter(iocb, to);
5655
/*
5756
* Even though this is a async interface, we need to wait
5857
* for IO to finish to update atime
@@ -352,8 +351,8 @@ const struct file_operations ecryptfs_dir_fops = {
352351

353352
const struct file_operations ecryptfs_main_fops = {
354353
.llseek = generic_file_llseek,
355-
.read = do_sync_read,
356-
.aio_read = ecryptfs_read_update_atime,
354+
.read = new_sync_read,
355+
.read_iter = ecryptfs_read_update_atime,
357356
.write = do_sync_write,
358357
.aio_write = generic_file_aio_write,
359358
.iterate = ecryptfs_readdir,

0 commit comments

Comments
 (0)