]> err.no Git - linux-2.6/blobdiff - mm/swapfile.c
[PATCH] lockdep: irqtrace cleanup of include/asm-i386/irqflags.h
[linux-2.6] / mm / swapfile.c
index f2824c3c31b428053e4b77c602b357417421dd2d..e70d6c6d6fee6f626a0c247c53f213413454cd0e 100644 (file)
@@ -5,7 +5,6 @@
  *  Swap reorganised 29.12.95, Stephen Tweedie
  */
 
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/mman.h>
@@ -1477,8 +1476,7 @@ asmlinkage long sys_swapon(const char __user * specialfile, int swap_flags)
                error = -EINVAL;
                goto bad_swap;
        }
-       page = read_cache_page(mapping, 0,
-                       (filler_t *)mapping->a_ops->readpage, swap_file);
+       page = read_mapping_page(mapping, 0, swap_file);
        if (IS_ERR(page)) {
                error = PTR_ERR(page);
                goto bad_swap;