From: Hans Reiser <
[email protected]>
Reiser4 is trying to add/remove pages to/from address space, so it needs
remove_from_page_cache
__remove_from_page_cache
add_to_page_cache_lru
to be EXPORT_SYMBOL-ed.
Signed-off-by: Andrew Morton <
[email protected]>
---
mm/filemap.c | 3 +++
1 files changed, 3 insertions(+)
diff -puN mm/filemap.c~reiser4-export-remove_from_page_cache mm/filemap.c
--- 25/mm/filemap.c~reiser4-export-remove_from_page_cache 2005-05-05 14:42:18.000000000 -0700
+++ 25-akpm/mm/filemap.c 2005-05-05 14:42:18.000000000 -0700
@@ -113,6 +113,7 @@ void __remove_from_page_cache(struct pag
mapping->nrpages--;
pagecache_acct(-1);
}
+EXPORT_SYMBOL(__remove_from_page_cache);
void remove_from_page_cache(struct page *page)
{
@@ -124,6 +125,7 @@ void remove_from_page_cache(struct page
__remove_from_page_cache(page);
write_unlock_irq(&mapping->tree_lock);
}
+EXPORT_SYMBOL(remove_from_page_cache);
static int sync_page(void *word)
{
@@ -404,6 +406,7 @@ int add_to_page_cache_lru(struct page *p
lru_cache_add(page);
return ret;
}
+EXPORT_SYMBOL(add_to_page_cache_lru);
/*
* In order to wait for pages to become available there must be
_