patch-2.3.47 linux/fs/minix/inode.c

Next file: linux/fs/ncpfs/sock.c
Previous file: linux/fs/lockd/xdr4.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/fs/minix/inode.c linux/fs/minix/inode.c
@@ -35,9 +35,13 @@
 
 static void minix_delete_inode(struct inode *inode)
 {
+	lock_kernel();
+
 	inode->i_size = 0;
 	minix_truncate(inode);
 	minix_free_inode(inode);
+
+	unlock_kernel();
 }
 
 static void minix_commit_super(struct super_block * sb)
@@ -1243,7 +1247,9 @@
 {
 	struct buffer_head *bh;
 
+	lock_kernel();
 	bh = minix_update_inode(inode);
+	unlock_kernel();
 	brelse(bh);
 }
 

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