aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/filemap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 61ba5e405791..4ee2e998e937 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1029,6 +1029,9 @@ find_page:
1029 goto page_not_up_to_date; 1029 goto page_not_up_to_date;
1030 if (!trylock_page(page)) 1030 if (!trylock_page(page))
1031 goto page_not_up_to_date; 1031 goto page_not_up_to_date;
1032 /* Did it get truncated before we got the lock? */
1033 if (!page->mapping)
1034 goto page_not_up_to_date_locked;
1032 if (!mapping->a_ops->is_partially_uptodate(page, 1035 if (!mapping->a_ops->is_partially_uptodate(page,
1033 desc, offset)) 1036 desc, offset))
1034 goto page_not_up_to_date_locked; 1037 goto page_not_up_to_date_locked;