aboutsummaryrefslogtreecommitdiffstats
path: root/mm/readahead.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/readahead.c')
-rw-r--r--mm/readahead.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mm/readahead.c b/mm/readahead.c
index 6be927569cf6..133b6d525513 100644
--- a/mm/readahead.c
+++ b/mm/readahead.c
@@ -33,14 +33,15 @@ EXPORT_SYMBOL_GPL(file_ra_state_init);
33 33
34/* 34/*
35 * see if a page needs releasing upon read_cache_pages() failure 35 * see if a page needs releasing upon read_cache_pages() failure
36 * - the caller of read_cache_pages() may have set PG_private before calling, 36 * - the caller of read_cache_pages() may have set PG_private or PG_fscache
37 * such as the NFS fs marking pages that are cached locally on disk, thus we 37 * before calling, such as the NFS fs marking pages that are cached locally
38 * need to give the fs a chance to clean up in the event of an error 38 * on disk, thus we need to give the fs a chance to clean up in the event of
39 * an error
39 */ 40 */
40static void read_cache_pages_invalidate_page(struct address_space *mapping, 41static void read_cache_pages_invalidate_page(struct address_space *mapping,
41 struct page *page) 42 struct page *page)
42{ 43{
43 if (PagePrivate(page)) { 44 if (page_has_private(page)) {
44 if (!trylock_page(page)) 45 if (!trylock_page(page))
45 BUG(); 46 BUG();
46 page->mapping = mapping; 47 page->mapping = mapping;