summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2009-07-22 11:17:19 (GMT)
committerJoel Becker <joel.becker@oracle.com>2009-07-23 17:59:24 (GMT)
commit1c1d9793ff6720531c0125a28d321f283716e32f (patch)
tree64316a07d5c0b434c852b3fdc8e4c9e42a363730
parent7669f54c55df225cbb2db939a6c9f111445ffc1c (diff)
downloadlinux-fsl-qoriq-1c1d9793ff6720531c0125a28d321f283716e32f.tar.xz
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 <jack@suse.cz> Signed-off-by: Joel Becker <joel.becker@oracle.com>
-rw-r--r--fs/ocfs2/super.c1
1 files changed, 1 insertions, 0 deletions
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;