diff options
Diffstat (limited to 'mm/truncate.c')
-rw-r--r-- | mm/truncate.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 5df947de7654..ebf3fcb4115b 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
@@ -85,7 +85,7 @@ EXPORT_SYMBOL(cancel_dirty_page); | |||
85 | * | 85 | * |
86 | * We need to bale out if page->mapping is no longer equal to the original | 86 | * We need to bale out if page->mapping is no longer equal to the original |
87 | * mapping. This happens a) when the VM reclaimed the page while we waited on | 87 | * mapping. This happens a) when the VM reclaimed the page while we waited on |
88 | * its lock, b) when a concurrent invalidate_inode_pages got there first and | 88 | * its lock, b) when a concurrent invalidate_mapping_pages got there first and |
89 | * c) when tmpfs swizzles a page between a tmpfs inode and swapper_space. | 89 | * c) when tmpfs swizzles a page between a tmpfs inode and swapper_space. |
90 | */ | 90 | */ |
91 | static void | 91 | static void |
@@ -106,7 +106,7 @@ truncate_complete_page(struct address_space *mapping, struct page *page) | |||
106 | } | 106 | } |
107 | 107 | ||
108 | /* | 108 | /* |
109 | * This is for invalidate_inode_pages(). That function can be called at | 109 | * This is for invalidate_mapping_pages(). That function can be called at |
110 | * any time, and is not supposed to throw away dirty pages. But pages can | 110 | * any time, and is not supposed to throw away dirty pages. But pages can |
111 | * be marked dirty at any time too, so use remove_mapping which safely | 111 | * be marked dirty at any time too, so use remove_mapping which safely |
112 | * discards clean, unused pages. | 112 | * discards clean, unused pages. |
@@ -310,12 +310,7 @@ unlock: | |||
310 | } | 310 | } |
311 | return ret; | 311 | return ret; |
312 | } | 312 | } |
313 | 313 | EXPORT_SYMBOL(invalidate_mapping_pages); | |
314 | unsigned long invalidate_inode_pages(struct address_space *mapping) | ||
315 | { | ||
316 | return invalidate_mapping_pages(mapping, 0, ~0UL); | ||
317 | } | ||
318 | EXPORT_SYMBOL(invalidate_inode_pages); | ||
319 | 314 | ||
320 | /* | 315 | /* |
321 | * This is like invalidate_complete_page(), except it ignores the page's | 316 | * This is like invalidate_complete_page(), except it ignores the page's |