]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ext4: add checksum calculation when clearing UNINIT flag in ext4_new_inode
authorFrederic Bohe <frederic.bohe@bull.net>
Fri, 7 Nov 2008 14:21:01 +0000 (09:21 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 Nov 2008 14:21:01 +0000 (09:21 -0500)
When initializing an uninitialized block group in ext4_new_inode(),
its block group checksum must be re-calculated.  This fixes a race
when several threads try to allocate a new inode in an UNINIT'd group.

There is some question whether we need to be initializing the block
bitmap in ext4_new_inode() at all, but for now, if we are going to
init the block group, let's eliminate the race.

Signed-off-by: Frederic Bohe <frederic.bohe@bull.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found