summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2009-07-22 15:17:19 +0400
committerJoel Becker <joel.becker@oracle.com>2009-07-23 21:59:24 +0400
commit1c1d9793ff6720531c0125a28d321f283716e32f (patch)
tree64316a07d5c0b434c852b3fdc8e4c9e42a363730 /fs
parent7669f54c55df225cbb2db939a6c9f111445ffc1c (diff)
downloadlinux-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>
Diffstat (limited to 'fs')
-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 f2893878f8ad..b0ee0fdf799a 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;