diff options
author | Jan Kara <jack@suse.cz> | 2009-07-22 13:17:19 +0200 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-07-23 10:59:24 -0700 |
commit | 1c1d9793ff6720531c0125a28d321f283716e32f (patch) | |
tree | 64316a07d5c0b434c852b3fdc8e4c9e42a363730 /fs/ocfs2/super.c | |
parent | 7669f54c55df225cbb2db939a6c9f111445ffc1c (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index f2893878f8a..b0ee0fdf799 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; |