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 ec469235985d..fef7d879ddf5 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1198,8 +1198,10 @@ generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
1198 if (retval > 0) 1198 if (retval > 0)
1199 *ppos = pos + retval; 1199 *ppos = pos + retval;
1200 } 1200 }
1201 file_accessed(filp); 1201 if (likely(retval != 0)) {
1202 goto out; 1202 file_accessed(filp);
1203 goto out;
1204 }
1203 } 1205 }
1204 1206
1205 retval = 0; 1207 retval = 0;