1 include/linux/fs.h | 1 +
3 2 files changed, 4 insertions(+)
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
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 */
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
23 struct address_space * mapping = page->mapping;
25 + if (mapping->a_ops->removepage)
26 + mapping->a_ops->removepage(page);
29 list_del(&page->list);