patch-2.2.4 linux/fs/sysv/ialloc.c

Next file: linux/fs/sysv/inode.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/fs/sysv/ialloc.c linux/fs/sysv/ialloc.c
@@ -86,6 +86,7 @@
 		return;
 	}
 	raw_inode = (struct sysv_inode *) bh->b_data + ((ino-1) & sb->sv_inodes_per_block_1);
+	clear_inode(inode);
 	lock_super(sb);
 	if (*sb->sv_sb_fic_count < sb->sv_fic_size)
 		*sv_sb_fic_inode(sb,(*sb->sv_sb_fic_count)++) = ino;
@@ -97,7 +98,6 @@
 	mark_buffer_dirty(bh, 1);
 	unlock_super(sb);
 	brelse(bh);
-	clear_inode(inode);
 }
 
 struct inode * sysv_new_inode(const struct inode * dir)

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