patch-2.1.117 linux/mm/swap_state.c
Next file: linux/mm/swapfile.c
Previous file: linux/mm/swap.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed Aug 19 13:07:49 1998
- Orig file:
v2.1.116/linux/mm/swap_state.c
- Orig date:
Mon Aug 3 12:45:48 1998
diff -u --recursive --new-file v2.1.116/linux/mm/swap_state.c linux/mm/swap_state.c
@@ -85,7 +85,7 @@
}
/*
- * If swap_map[] reaches 127, the entries are treated as "permanent".
+ * If swap_map[] reaches SWAP_MAP_MAX the entries are treated as "permanent".
*/
void swap_duplicate(unsigned long entry)
{
@@ -105,14 +105,14 @@
goto bad_offset;
if (!p->swap_map[offset])
goto bad_unused;
- if (p->swap_map[offset] < 126)
+ if (p->swap_map[offset] < SWAP_MAP_MAX)
p->swap_map[offset]++;
else {
static int overflow = 0;
if (overflow++ < 5)
printk("swap_duplicate: entry %08lx map count=%d\n",
entry, p->swap_map[offset]);
- p->swap_map[offset] = 127;
+ p->swap_map[offset] = SWAP_MAP_MAX;
}
#ifdef DEBUG_SWAP
printk("DebugVM: swap_duplicate(entry %08lx, count now %d)\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov