diff options
-rw-r--r-- | mm/truncate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 3855492f1c3a..9838c050e2dd 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
@@ -98,11 +98,11 @@ truncate_complete_page(struct address_space *mapping, struct page *page) | |||
98 | if (page->mapping != mapping) | 98 | if (page->mapping != mapping) |
99 | return; | 99 | return; |
100 | 100 | ||
101 | cancel_dirty_page(page, PAGE_CACHE_SIZE); | ||
102 | |||
103 | if (PagePrivate(page)) | 101 | if (PagePrivate(page)) |
104 | do_invalidatepage(page, 0); | 102 | do_invalidatepage(page, 0); |
105 | 103 | ||
104 | cancel_dirty_page(page, PAGE_CACHE_SIZE); | ||
105 | |||
106 | remove_from_page_cache(page); | 106 | remove_from_page_cache(page); |
107 | ClearPageUptodate(page); | 107 | ClearPageUptodate(page); |
108 | ClearPageMappedToDisk(page); | 108 | ClearPageMappedToDisk(page); |