patch-2.3.34 linux/mm/filemap.c

Next file: linux/mm/mmap.c
Previous file: linux/kernel/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/mm/filemap.c linux/mm/filemap.c
@@ -1620,7 +1620,9 @@
  */
 static void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len)
 {
+	lock_kernel();
 	filemap_sync(vma, start, len, MS_ASYNC);
+	unlock_kernel();
 }
 
 /*

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