patch-1.3.74 linux/mm/swap_state.c
Next file: linux/mm/swapfile.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Mar 13 15:17:23 1996
- Orig file:
v1.3.73/linux/mm/swap_state.c
- Orig date:
Sun Jan 14 16:30:16 1996
diff -u --recursive --new-file v1.3.73/linux/mm/swap_state.c linux/mm/swap_state.c
@@ -49,7 +49,7 @@
}
#endif
-int add_to_swap_cache(unsigned long addr, unsigned long entry)
+int add_to_swap_cache(unsigned long index, unsigned long entry)
{
struct swap_info_struct * p = &swap_info[SWP_TYPE(entry)];
@@ -57,7 +57,7 @@
swap_cache_add_total++;
#endif
if ((p->flags & SWP_WRITEOK) == SWP_WRITEOK) {
- entry = xchg(swap_cache + MAP_NR(addr), entry);
+ entry = xchg(swap_cache + index, entry);
if (entry) {
printk("swap_cache: replacing non-NULL entry\n");
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this