aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index afcdc72b5e90..87d4a398cd16 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1197,8 +1197,10 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
1197 if (retval > 0) 1197 if (retval > 0)
1198 *ppos = pos + retval; 1198 *ppos = pos + retval;
1199 } 1199 }
1200 file_accessed(filp); 1200 if (likely(retval != 0)) {
1201 goto out; 1201 file_accessed(filp);
1202 goto out;
1203 }
1202 } 1204 }
1203 1205
1204 retval = 0; 1206 retval = 0;