1 include/linux/fs.h | 1 +
3 2 files changed, 4 insertions(+)
5 --- linux-2.4.20-b_llpmd-l24/include/linux/fs.h~removepage-2.4.20 2003-09-05 11:45:42.000000000 -0700
6 +++ linux-2.4.20-b_llpmd-l24-zab/include/linux/fs.h 2003-09-05 11:46:25.000000000 -0700
7 @@ -402,6 +402,7 @@ struct address_space_operations {
8 int (*releasepage) (struct page *, int);
9 #define KERNEL_HAS_O_DIRECT /* this is for modules out of the kernel */
10 int (*direct_IO)(int, struct inode *, struct kiobuf *, unsigned long, int);
11 + void (*removepage)(struct page *); /* called when page gets removed from the inode */
14 struct address_space {
15 --- linux-2.4.20-b_llpmd-l24/mm/filemap.c~removepage-2.4.20 2003-09-05 11:45:42.000000000 -0700
16 +++ linux-2.4.20-b_llpmd-l24-zab/mm/filemap.c 2003-09-05 11:46:25.000000000 -0700
17 @@ -95,6 +95,9 @@ static inline void remove_page_from_inod
19 struct address_space * mapping = page->mapping;
21 + if (mapping->a_ops->removepage)
22 + mapping->a_ops->removepage(page);
25 list_del(&page->list);