diff options
-rw-r--r-- | mm/filemap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index d9bbea1e87d2..91a741ddd49d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1180,9 +1180,10 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov, | |||
1180 | if (retval > 0) | 1180 | if (retval > 0) |
1181 | *ppos = pos + retval; | 1181 | *ppos = pos + retval; |
1182 | } | 1182 | } |
1183 | file_accessed(filp); | 1183 | if (likely(retval != 0)) { |
1184 | if (retval != 0) | 1184 | file_accessed(flip); |
1185 | goto out; | 1185 | goto out; |
1186 | } | ||
1186 | } | 1187 | } |
1187 | 1188 | ||
1188 | retval = 0; | 1189 | retval = 0; |