diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/filemap.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index c1459f2cdb5e..e7b59785ceb9 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -155,6 +155,22 @@ void remove_from_page_cache(struct page *page) | |||
155 | } | 155 | } |
156 | EXPORT_SYMBOL(remove_from_page_cache); | 156 | EXPORT_SYMBOL(remove_from_page_cache); |
157 | 157 | ||
158 | /** | ||
159 | * delete_from_page_cache - delete page from page cache | ||
160 | * @page: the page which the kernel is trying to remove from page cache | ||
161 | * | ||
162 | * This must be called only on pages that have | ||
163 | * been verified to be in the page cache and locked. | ||
164 | * It will never put the page into the free list, | ||
165 | * the caller has a reference on the page. | ||
166 | */ | ||
167 | void delete_from_page_cache(struct page *page) | ||
168 | { | ||
169 | remove_from_page_cache(page); | ||
170 | page_cache_release(page); | ||
171 | } | ||
172 | EXPORT_SYMBOL(delete_from_page_cache); | ||
173 | |||
158 | static int sync_page(void *word) | 174 | static int sync_page(void *word) |
159 | { | 175 | { |
160 | struct address_space *mapping; | 176 | struct address_space *mapping; |