patch-2.1.55 linux/fs/ext2/ialloc.c

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

diff -u --recursive --new-file v2.1.54/linux/fs/ext2/ialloc.c linux/fs/ext2/ialloc.c
@@ -448,7 +448,7 @@
 			mode |= S_ISGID;
 	} else
 		inode->i_gid = current->fsgid;
-	mark_inode_dirty(inode);
+
 	inode->i_ino = j;
 	inode->i_blksize = PAGE_SIZE;	/* This is the optimal IO size (for stat), not the fs block size */
 	inode->i_blocks = 0;
@@ -468,6 +468,7 @@
 	if (inode->u.ext2_i.i_flags & EXT2_SYNC_FL)
 		inode->i_flags |= MS_SYNCHRONOUS;
 	insert_inode_hash(inode);
+	mark_inode_dirty(inode);
 	inc_inode_version (inode, gdp, mode);
 
 	unlock_super (sb);

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