diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-02-02 22:18:22 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-04-01 23:19:20 -0400 |
commit | 8142c184b8f16d213eb8ba06ccb6222259a51cfc (patch) | |
tree | 40c818c697edbc0452e3d48006b6f7584c3217f3 /mm | |
parent | 9e8c2af96e0d2d5fe298dd796fb6bc16e888a48d (diff) |
do_shmem_file_read(): call file_read_actor() directly
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/shmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 1f18c9d0d93e..9398e6cd48cb 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1462,7 +1462,7 @@ shmem_write_end(struct file *file, struct address_space *mapping, | |||
1462 | return copied; | 1462 | return copied; |
1463 | } | 1463 | } |
1464 | 1464 | ||
1465 | static void do_shmem_file_read(struct file *filp, loff_t *ppos, read_descriptor_t *desc, read_actor_t actor) | 1465 | static void do_shmem_file_read(struct file *filp, loff_t *ppos, read_descriptor_t *desc) |
1466 | { | 1466 | { |
1467 | struct inode *inode = file_inode(filp); | 1467 | struct inode *inode = file_inode(filp); |
1468 | struct address_space *mapping = inode->i_mapping; | 1468 | struct address_space *mapping = inode->i_mapping; |
@@ -1550,7 +1550,7 @@ static void do_shmem_file_read(struct file *filp, loff_t *ppos, read_descriptor_ | |||
1550 | * "pos" here (the actor routine has to update the user buffer | 1550 | * "pos" here (the actor routine has to update the user buffer |
1551 | * pointers and the remaining count). | 1551 | * pointers and the remaining count). |
1552 | */ | 1552 | */ |
1553 | ret = actor(desc, page, offset, nr); | 1553 | ret = file_read_actor(desc, page, offset, nr); |
1554 | offset += ret; | 1554 | offset += ret; |
1555 | index += offset >> PAGE_CACHE_SHIFT; | 1555 | index += offset >> PAGE_CACHE_SHIFT; |
1556 | offset &= ~PAGE_CACHE_MASK; | 1556 | offset &= ~PAGE_CACHE_MASK; |
@@ -1588,7 +1588,7 @@ static ssize_t shmem_file_aio_read(struct kiocb *iocb, | |||
1588 | if (desc.count == 0) | 1588 | if (desc.count == 0) |
1589 | continue; | 1589 | continue; |
1590 | desc.error = 0; | 1590 | desc.error = 0; |
1591 | do_shmem_file_read(filp, ppos, &desc, file_read_actor); | 1591 | do_shmem_file_read(filp, ppos, &desc); |
1592 | retval += desc.written; | 1592 | retval += desc.written; |
1593 | if (desc.error) { | 1593 | if (desc.error) { |
1594 | retval = retval ?: desc.error; | 1594 | retval = retval ?: desc.error; |