patch-2.4.0-test4 linux/fs/hpfs/file.c

Next file: linux/fs/inode.c
Previous file: linux/fs/hpfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/fs/hpfs/file.c linux/fs/hpfs/file.c
@@ -24,7 +24,9 @@
 
 int hpfs_file_release(struct inode *inode, struct file *file)
 {
+	lock_kernel();
 	hpfs_write_if_changed(inode);
+	unlock_kernel();
 	return 0;
 }
 

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