patch-2.3.50 linux/ipc/shm.c

Next file: linux/kernel/ksyms.c
Previous file: linux/ipc/sem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/ipc/shm.c linux/ipc/shm.c
@@ -925,9 +925,9 @@
 			swap_free(entry);
 			if ((shp != shm_lock(shp->id)) && (is_shmzero == 0))
 				BUG();
-			if (is_shmzero) shm_swp--;
+			if (is_shmzero == 0) shm_swp--;
 		}
-		if (is_shmzero) shm_rss++;
+		if (is_shmzero == 0) shm_rss++;
 		pte = pte_mkdirty(mk_pte(page, PAGE_SHARED));
 		SHM_ENTRY(shp, idx) = pte;
 	} else

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)