aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/filemap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 9e56fd158fa3..7b48b2ad00e7 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1784,7 +1784,7 @@ struct page *read_cache_page_async(struct address_space *mapping,
1784retry: 1784retry:
1785 page = __read_cache_page(mapping, index, filler, data); 1785 page = __read_cache_page(mapping, index, filler, data);
1786 if (IS_ERR(page)) 1786 if (IS_ERR(page))
1787 goto out; 1787 return page;
1788 mark_page_accessed(page); 1788 mark_page_accessed(page);
1789 if (PageUptodate(page)) 1789 if (PageUptodate(page))
1790 goto out; 1790 goto out;
@@ -1802,9 +1802,9 @@ retry:
1802 err = filler(data, page); 1802 err = filler(data, page);
1803 if (err < 0) { 1803 if (err < 0) {
1804 page_cache_release(page); 1804 page_cache_release(page);
1805 page = ERR_PTR(err); 1805 return ERR_PTR(err);
1806 } 1806 }
1807 out: 1807out:
1808 mark_page_accessed(page); 1808 mark_page_accessed(page);
1809 return page; 1809 return page;
1810} 1810}