[PATCH] TuxOnice: export __page_file_index

François Valenduc <[email protected]> Thu, 4 Oct 2012 20:08:26 +0200
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
This is needed by Tuxonice to compile nfs as a module.

Signed-off-by: François Valenduc <[email protected]>
Cc: Tuxonice-devel <[email protected]>
---
 mm/swapfile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mm/swapfile.c b/mm/swapfile.c
index 1657296..e45270a 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -2304,6 +2304,8 @@ pgoff_t __page_file_index(struct page *page)
 	return swp_offset(swap);
 }
 
+EXPORT_SYMBOL_GPL(__page_file_index);
+
 struct swap_info_struct *get_swap_info_struct(unsigned type)
 {
 	return swap_info[type];
-- 
1.7.8.6

_______________________________________________
TuxOnIce-devel mailing list
[email protected]
http://lists.tuxonice.net/listinfo/tuxonice-devel