Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / kernel_patches / patches / removepage-2.4.19-suse.patch
1  include/linux/fs.h |    1 +
2  mm/filemap.c       |    3 +++
3  2 files changed, 4 insertions(+)
4
5 Index: linux-2.4.19.SuSE/include/linux/fs.h
6 ===================================================================
7 --- linux-2.4.19.SuSE.orig/include/linux/fs.h   Sun Nov 16 00:40:59 2003
8 +++ linux-2.4.19.SuSE/include/linux/fs.h        Sun Nov 16 01:38:06 2003
9 @@ -428,6 +428,7 @@
10         int (*releasepage) (struct page *, int);
11  #define KERNEL_HAS_O_DIRECT /* this is for modules out of the kernel */
12         int (*direct_IO)(int, struct file *, struct kiobuf *, unsigned long, int);
13 +       void (*removepage)(struct page *); /* called when page gets removed from the inode */
14  };
15  
16  struct address_space {
17 Index: linux-2.4.19.SuSE/mm/filemap.c
18 ===================================================================
19 --- linux-2.4.19.SuSE.orig/mm/filemap.c Sat Nov 15 18:02:15 2003
20 +++ linux-2.4.19.SuSE/mm/filemap.c      Sun Nov 16 01:37:11 2003
21 @@ -97,6 +97,9 @@
22  {
23         struct address_space * mapping = page->mapping;
24  
25 +       if (mapping->a_ops->removepage)
26 +               mapping->a_ops->removepage(page);
27 +       
28         mapping->nrpages--;
29         list_del(&page->list);
30         page->mapping = NULL;