patch-2.1.55 linux/fs/affs/inode.c

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

diff -u --recursive --new-file v2.1.54/linux/fs/affs/inode.c linux/fs/affs/inode.c
@@ -908,7 +908,6 @@
 	inode->i_dev     = sb->s_dev;
 	inode->i_uid     = current->fsuid;
 	inode->i_gid     = current->fsgid;
-	mark_inode_dirty(inode);
 	inode->i_ino     = block;
 	inode->i_op      = NULL;
 	inode->i_blocks  = 0;
@@ -928,6 +927,7 @@
 	inode->u.affs_i.i_lastblock    = -1;
 
 	insert_inode_hash(inode);
+	mark_inode_dirty(inode);
 
 	return inode;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov