]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Export swapper_space
authorRussell King <rmk+lkml@arm.linux.org.uk>
Thu, 3 Jun 2004 01:26:30 +0000 (18:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 01:26:30 +0000 (18:26 -0700)
swapper_space is needed by at least loop/st/sg these days.

mm/swap_state.c

index 6dd0825561fc3b32bb091092c5bb29729c65d95f..13832c945fb14e148d5493fffdeebb9ad2c28c1f 100644 (file)
@@ -6,7 +6,7 @@
  *
  *  Rewritten to use page cache, (C) 1998 Stephen Tweedie
  */
-
+#include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/kernel_stat.h>
 #include <linux/swap.h>
@@ -38,6 +38,7 @@ struct address_space swapper_space = {
        .a_ops          = &swap_aops,
        .backing_dev_info = &swap_backing_dev_info,
 };
+EXPORT_SYMBOL(swapper_space);
 
 #define INC_CACHE_INFO(x)      do { swap_cache_info.x++; } while (0)