1 include/linux/mm.h | 2 ++
3 2 files changed, 4 insertions(+), 2 deletions(-)
5 Index: linux-2.6.27.21-0.1/include/linux/mm.h
6 ===================================================================
7 --- linux-2.6.27.21-0.1.orig/include/linux/mm.h
8 +++ linux-2.6.27.21-0.1/include/linux/mm.h
9 @@ -602,6 +602,8 @@ static __always_inline void *lowmem_page
11 return __va(page_to_pfn(page) << PAGE_SHIFT);
14 +extern void truncate_complete_page(struct address_space *mapping,struct page *);
16 #if defined(CONFIG_HIGHMEM) && !defined(WANT_PAGE_VIRTUAL)
17 #define HASHED_PAGE_VIRTUAL
18 Index: linux-2.6.27.21-0.1/mm/truncate.c
19 ===================================================================
20 --- linux-2.6.27.21-0.1.orig/mm/truncate.c
21 +++ linux-2.6.27.21-0.1/mm/truncate.c
22 @@ -92,7 +92,7 @@ EXPORT_SYMBOL(cancel_dirty_page);
23 * its lock, b) when a concurrent invalidate_mapping_pages got there first and
24 * c) when tmpfs swizzles a page between a tmpfs inode and swapper_space.
28 truncate_complete_page(struct address_space *mapping, struct page *page)
30 if (page->mapping != mapping)
31 @@ -107,7 +107,7 @@ truncate_complete_page(struct address_sp
32 ClearPageMappedToDisk(page);
33 page_cache_release(page); /* pagecache ref */
36 +EXPORT_SYMBOL_GPL(truncate_complete_page);
38 * This is for invalidate_mapping_pages(). That function can be called at
39 * any time, and is not supposed to throw away dirty pages. But pages can