Whamcloud - gitweb
b=4336
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-truncate-2.6-suse.patch
1  include/linux/mm.h |    2 ++
2  mm/truncate.c      |    4 ++--
3  2 files changed, 4 insertions(+), 2 deletions(-)
4
5 --- linux-2.5.63/include/linux/mm.h~export-truncate-2.5.63      Mon May  5 18:08:15 2003
6 +++ linux-2.5.63-root/include/linux/mm.h        Mon May  5 18:08:58 2003
7 @@ -540,6 +540,8 @@ can_vma_merge(struct vm_area_struct *vma
8         else
9                 return 0;
10  }
11 +/* truncate.c */
12 +extern void truncate_complete_page(struct address_space *mapping,struct page *);
13  
14  /* filemap.c */
15  extern unsigned long page_unuse(struct page *);
16 --- linux-2.5.63/mm/truncate.c~export-truncate-2.5.63   Mon May  5 18:09:50 2003
17 +++ linux-2.5.63-root/mm/truncate.c     Mon May  5 18:11:29 2003
18 @@ -41,7 +41,7 @@ static inline void truncate_partial_page
19   * its lock, b) when a concurrent invalidate_inode_pages got there first and
20   * c) when tmpfs swizzles a page between a tmpfs inode and swapper_space.
21   */
22 -static void
23 +void
24  truncate_complete_page(struct address_space *mapping, struct page *page)
25  {
26         if (page->mapping != mapping)
27 @@ -56,7 +56,7 @@ truncate_complete_page(struct address_sp
28         remove_from_page_cache(page);
29         page_cache_release(page);       /* pagecache ref */
30  }
31 -
32 +EXPORT_SYMBOL_GPL(truncate_complete_page);
33  /*
34   * This is for invalidate_inode_pages().  That function can be called at
35   * any time, and is not supposed to throw away dirty pages.  But pages can
36
37 _