summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/super.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2009-07-22 13:17:19 +0200
committerJoel Becker <joel.becker@oracle.com>2009-07-23 10:59:24 -0700
commit1c1d9793ff6720531c0125a28d321f283716e32f (patch)
tree64316a07d5c0b434c852b3fdc8e4c9e42a363730 /fs/ocfs2/super.c
parent7669f54c55df225cbb2db939a6c9f111445ffc1c (diff)
downloadop-kernel-dev-1c1d9793ff6720531c0125a28d321f283716e32f.zip
op-kernel-dev-1c1d9793ff6720531c0125a28d321f283716e32f.tar.gz
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/ocfs2/super.c')
-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;
OpenPOWER on IntegriCloud