1 include/linux/mm.h | 2 ++
3 2 files changed, 4 insertions(+), 2 deletions(-)
5 Index: linux-2.6/include/linux/mm.h
6 ===================================================================
7 --- linux-2.6.orig/include/linux/mm.h 2006-07-06 23:41:48.000000000 +0800
8 +++ linux-2.6/include/linux/mm.h 2006-07-15 12:55:07.000000000 +0800
9 @@ -529,6 +529,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/mm/truncate.c
19 ===================================================================
20 --- linux-2.6.orig/mm/truncate.c 2006-06-24 14:22:39.000000000 +0800
21 +++ linux-2.6/mm/truncate.c 2006-07-15 12:55:07.000000000 +0800
22 @@ -33,7 +33,7 @@ static inline void truncate_partial_page
23 * its lock, b) when a concurrent invalidate_inode_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 @@ -48,7 +48,7 @@ truncate_complete_page(struct address_sp
32 remove_from_page_cache(page);
33 page_cache_release(page); /* pagecache ref */
36 +EXPORT_SYMBOL_GPL(truncate_complete_page);
38 * This is for invalidate_inode_pages(). That function can be called at
39 * any time, and is not supposed to throw away dirty pages. But pages can