From 10dbf9bee27b92d7ab5c461a0fde674a0533424d Mon Sep 17 00:00:00 2001 From: pschwan Date: Mon, 24 Mar 2003 17:41:08 +0000 Subject: [PATCH] Add Zach's patch to export truncate_complete_page(); still needs an hp-pnnl and vanilla equivalent --- .../kernel_patches/patches/export-truncate.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lustre/kernel_patches/patches/export-truncate.patch diff --git a/lustre/kernel_patches/patches/export-truncate.patch b/lustre/kernel_patches/patches/export-truncate.patch new file mode 100644 index 0000000..12e6f440b --- /dev/null +++ b/lustre/kernel_patches/patches/export-truncate.patch @@ -0,0 +1,29 @@ +--- linux/include/linux/mm.h.truncexport 2003-03-21 20:03:18.000000000 -0500 ++++ linux/include/linux/mm.h 2003-03-21 20:05:04.000000000 -0500 +@@ -650,6 +650,7 @@ + /* filemap.c */ + extern void remove_inode_page(struct page *); + extern unsigned long page_unuse(struct page *); ++extern void truncate_complete_page(struct page *); + extern void truncate_inode_pages(struct address_space *, loff_t); + + /* generic vm_area_ops exported for stackable file systems */ +--- linux/mm/filemap.c.truncexport 2003-03-21 20:01:19.000000000 -0500 ++++ linux/mm/filemap.c 2003-03-21 20:01:41.000000000 -0500 +@@ -245,7 +245,7 @@ + do_flushpage(page, partial); + } + +-static void truncate_complete_page(struct page *page) ++void truncate_complete_page(struct page *page) + { + /* + * Leave it on the LRU if it gets converted into anonymous buffers +@@ -266,6 +266,7 @@ + remove_inode_page(page); + page_cache_release(page); + } ++EXPORT_SYMBOL_GPL(truncate_complete_page); + + static int FASTCALL(truncate_list_pages(struct list_head *, unsigned long, unsigned *)); + static int truncate_list_pages(struct list_head *head, unsigned long start, unsigned *partial) -- 1.8.3.1