Whamcloud - gitweb
c8005ef89f6c7fab6cf090c1a3d6735710b81845
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-truncate-2.6.18-vanilla.patch
1  include/linux/mm.h |    2 ++
2  mm/truncate.c      |    4 ++--
3  2 files changed, 4 insertions(+), 2 deletions(-)
4
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
10  {
11         return __va(page_to_pfn(page) << PAGE_SHIFT);
12  }
13 +/* truncate.c */
14 +extern void truncate_complete_page(struct address_space *mapping,struct page *);
15  
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.
25   */
26 -static void
27 +void
28  truncate_complete_page(struct address_space *mapping, struct page *page)
29  {
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 */
34  }
35 -
36 +EXPORT_SYMBOL_GPL(truncate_complete_page);
37  /*
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