aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/filemap.c6
-rw-r--r--mm/readahead.c1
2 files changed, 5 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;
diff --git a/mm/readahead.c b/mm/readahead.c
index aa7ec424656a..1ba736ac0367 100644
--- a/mm/readahead.c
+++ b/mm/readahead.c
@@ -38,6 +38,7 @@ file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping)
38 ra->ra_pages = mapping->backing_dev_info->ra_pages; 38 ra->ra_pages = mapping->backing_dev_info->ra_pages;
39 ra->prev_page = -1; 39 ra->prev_page = -1;
40} 40}
41EXPORT_SYMBOL_GPL(file_ra_state_init);
41 42
42/* 43/*
43 * Return max readahead size for this inode in number-of-pages. 44 * Return max readahead size for this inode in number-of-pages.