patch-2.3.24 linux/ipc/shm.c

Next file: linux/ipc/util.c
Previous file: linux/include/net/irda/wrapper.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/ipc/shm.c linux/ipc/shm.c
@@ -33,7 +33,7 @@
 static void shm_open (struct vm_area_struct *shmd);
 static void shm_close (struct vm_area_struct *shmd);
 static struct page * shm_nopage(struct vm_area_struct *, unsigned long, int);
-static int shm_swapout(struct vm_area_struct *, struct page *);
+static int shm_swapout(struct page *, struct file *);
 #ifdef CONFIG_PROC_FS
 static int sysvipc_shm_read_proc(char *buffer, char **start, off_t offset, int length, int *eof, void *data);
 #endif
@@ -646,7 +646,7 @@
  * data structures already, and shm_swap_out() will just
  * work off them..
  */
-static int shm_swapout(struct vm_area_struct * vma, struct page * page)
+static int shm_swapout(struct page * page, struct file *file)
 {
 	return 0;
 }
@@ -681,7 +681,6 @@
 			pte_t entry = pte;
 
 			spin_unlock(&shm_lock);
-			BUG();
 			page = lookup_swap_cache(entry);
 			if (!page) {
 				lock_kernel();

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