patch-1.3.39 linux/ipc/shm.c

Next file: linux/kernel/Makefile
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.38/linux/ipc/shm.c linux/ipc/shm.c
@@ -360,9 +360,9 @@
  */
 
 static struct vm_operations_struct shm_vm_ops = {
-	shm_open,		/* open */
-	shm_close,		/* close */
-	NULL,			/* unmap */
+	shm_open,		/* open - callback for a new vm-area open */
+	shm_close,		/* close - callback for when the vm-area is released */
+	NULL,			/* no need to sync pages at unmap */
 	NULL,			/* protect */
 	NULL,			/* sync */
 	NULL,			/* advise */
@@ -569,8 +569,6 @@
 {
 	struct shmid_ds *shp;
 	int id;
-
-	unmap_page_range (shmd->vm_start, shmd->vm_end - shmd->vm_start);
 
 	/* remove from the list of attaches of the shm segment */
 	id = SWP_OFFSET(shmd->vm_pte) & SHM_ID_MASK;

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