patch-1.3.1 linux/mm/swap.c
Next file: linux/Makefile
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Tue Jun 13 12:59:40 1995
- Orig file:
v1.3.0/linux/mm/swap.c
- Orig date:
Sat Jun 10 12:55:57 1995
diff -u --recursive --new-file v1.3.0/linux/mm/swap.c linux/mm/swap.c
@@ -211,7 +211,7 @@
return;
offset = SWP_OFFSET(entry);
type = SWP_TYPE(entry);
- if (type == SHM_SWP_TYPE)
+ if (type & SHM_SWP_TYPE)
return;
if (type >= nr_swapfiles) {
printk("Trying to duplicate nonexistent swap-page\n");
@@ -238,7 +238,7 @@
if (!entry)
return;
type = SWP_TYPE(entry);
- if (type == SHM_SWP_TYPE)
+ if (type & SHM_SWP_TYPE)
return;
if (type >= nr_swapfiles) {
printk("Trying to free nonexistent swap-page\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