projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7669f54
)
ocfs2: Fix initialization of blockcheck stats
author
Jan Kara
<jack@suse.cz>
Wed, 22 Jul 2009 11:17:19 +0000
(13:17 +0200)
committer
Joel Becker
<joel.becker@oracle.com>
Thu, 23 Jul 2009 17:59:24 +0000
(10:59 -0700)
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>
fs/ocfs2/super.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/super.c
b/fs/ocfs2/super.c
index
f289387
..
b0ee0fd
100644
(file)
--- 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;