patch-2.1.13 linux/mm/swapfile.c

Next file: linux/net/appletalk/ddp.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.12/linux/mm/swapfile.c linux/mm/swapfile.c
@@ -25,7 +25,8 @@
 #include <asm/bitops.h>
 #include <asm/pgtable.h>
 
-int nr_swapfiles = 0;
+unsigned int nr_swapfiles = 0;
+
 static struct {
 	int head;	/* head of priority-ordered swapfile list */
 	int next;	/* swapfile to be used next */
@@ -36,7 +37,7 @@
 
 static inline int scan_swap_map(struct swap_info_struct *si)
 {
-	int offset;
+	unsigned long offset;
 	/* 
 	 * We try to cluster swap pages by allocating them
 	 * sequentially in swap.  Once we've allocated

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov