diff options
Diffstat (limited to 'mm/truncate.c')
-rw-r--r-- | mm/truncate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 7c994f2d6145..f47e46d1be3b 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
@@ -100,9 +100,9 @@ truncate_complete_page(struct address_space *mapping, struct page *page) | |||
100 | if (PagePrivate(page)) | 100 | if (PagePrivate(page)) |
101 | do_invalidatepage(page, 0); | 101 | do_invalidatepage(page, 0); |
102 | 102 | ||
103 | remove_from_page_cache(page); | ||
103 | ClearPageUptodate(page); | 104 | ClearPageUptodate(page); |
104 | ClearPageMappedToDisk(page); | 105 | ClearPageMappedToDisk(page); |
105 | remove_from_page_cache(page); | ||
106 | page_cache_release(page); /* pagecache ref */ | 106 | page_cache_release(page); /* pagecache ref */ |
107 | } | 107 | } |
108 | 108 | ||