1 include/linux/mm.h | 1 +
3 2 files changed, 3 insertions(+), 1 deletion(-)
5 --- linux-2.4.18-18/include/linux/mm.h~export-truncate 2003-04-05 02:54:55.000000000 -0700
6 +++ linux-2.4.18-18-braam/include/linux/mm.h 2003-04-09 17:37:46.000000000 -0600
7 @@ -650,6 +650,7 @@ struct zone_t;
9 extern void remove_inode_page(struct page *);
10 extern unsigned long page_unuse(struct page *);
11 +extern void truncate_complete_page(struct page *);
12 extern void truncate_inode_pages(struct address_space *, loff_t);
14 /* generic vm_area_ops exported for stackable file systems */
15 --- linux-2.4.18-18/mm/filemap.c~export-truncate 2003-04-05 02:54:55.000000000 -0700
16 +++ linux-2.4.18-18-braam/mm/filemap.c 2003-04-09 17:37:46.000000000 -0600
17 @@ -245,7 +245,7 @@ static inline void truncate_partial_page
18 do_flushpage(page, partial);
21 -static void truncate_complete_page(struct page *page)
22 +void truncate_complete_page(struct page *page)
25 * Leave it on the LRU if it gets converted into anonymous buffers
26 @@ -266,6 +266,7 @@ static void truncate_complete_page(struc
27 remove_inode_page(page);
28 page_cache_release(page);
30 +EXPORT_SYMBOL_GPL(truncate_complete_page);
32 static int FASTCALL(truncate_list_pages(struct list_head *, unsigned long, unsigned *));
33 static int truncate_list_pages(struct list_head *head, unsigned long start, unsigned *partial)