patch-2.3.41 linux/ipc/shm.c

Next file: linux/kernel/dma.c
Previous file: linux/include/net/tcp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/ipc/shm.c linux/ipc/shm.c
@@ -584,15 +584,10 @@
  */
 
 static struct vm_operations_struct shm_vm_ops = {
-	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 */
-	shm_nopage,		/* nopage */
-	NULL,			/* wppage */
-	shm_swapout		/* swapout */
+	open:		shm_open,	/* open - callback for a new vm-area open */
+	close:		shm_close,	/* close - callback for when the vm-area is released */
+	nopage:		shm_nopage,
+	swapout:	shm_swapout,
 };
 
 /* Insert shmd into the list shp->attaches */

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