patch-2.3.47 linux/fs/ext2/inode.c
Next file: linux/fs/inode.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Sun Feb 20 13:09:46 2000
- Orig file:
v2.3.46/linux/fs/ext2/inode.c
- Orig date:
Thu Feb 10 17:11:17 2000
diff -u --recursive --new-file v2.3.46/linux/fs/ext2/inode.c linux/fs/ext2/inode.c
@@ -35,7 +35,9 @@
*/
void ext2_put_inode (struct inode * inode)
{
+ lock_kernel();
ext2_discard_prealloc (inode);
+ unlock_kernel();
}
/*
@@ -43,6 +45,8 @@
*/
void ext2_delete_inode (struct inode * inode)
{
+ lock_kernel();
+
if (is_bad_inode(inode) ||
inode->i_ino == EXT2_ACL_IDX_INO ||
inode->i_ino == EXT2_ACL_DATA_INO)
@@ -54,6 +58,8 @@
if (inode->i_blocks)
ext2_truncate (inode);
ext2_free_inode (inode);
+
+ unlock_kernel();
}
#define inode_bmap(inode, nr) (le32_to_cpu((inode)->u.ext2_i.i_data[(nr)]))
@@ -893,7 +899,9 @@
void ext2_write_inode (struct inode * inode)
{
+ lock_kernel();
ext2_update_inode (inode, 0);
+ unlock_kernel();
}
int ext2_sync_inode (struct inode *inode)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)