From: Jan Kara Date: Wed, 22 Jul 2009 11:17:19 +0000 (+0200) Subject: ocfs2: Fix initialization of blockcheck stats X-Git-Tag: v2.6.31-rc6~5^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c1d9793ff6720531c0125a28d321f283716e32f;p=platform%2Fkernel%2Flinux-exynos.git ocfs2: Fix initialization of blockcheck stats We just set blockcheck stats to zeros but we should also properly initialize the spinlock there. Signed-off-by: Jan Kara Signed-off-by: Joel Becker --- diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index f289387..b0ee0fd 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -777,6 +777,7 @@ static int ocfs2_sb_probe(struct super_block *sb, } di = (struct ocfs2_dinode *) (*bh)->b_data; memset(stats, 0, sizeof(struct ocfs2_blockcheck_stats)); + spin_lock_init(&stats->b_lock); status = ocfs2_verify_volume(di, *bh, blksize, stats); if (status >= 0) goto bail;