projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf57a30
)
[GFS2] Make GFS2 work with lock validator
author
Steven Whitehouse
<swhiteho@redhat.com>
Wed, 5 Jul 2006 14:41:39 +0000
(10:41 -0400)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Wed, 5 Jul 2006 14:41:39 +0000
(10:41 -0400)
Change our one existing old-style lock initialiser to a new-style
one. This allows the lock validator to work as intended.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_fstype.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/ops_fstype.c
b/fs/gfs2/ops_fstype.c
index b040fda1f54cb4ccdcaa6c2f47de6edb33a0d6c5..a86ce67949db2fdf6f576c14bed8f6db0e66ceff 100644
(file)
--- a/
fs/gfs2/ops_fstype.c
+++ b/
fs/gfs2/ops_fstype.c
@@
-57,7
+57,7
@@
static struct gfs2_sbd *init_sbd(struct super_block *sb)
gfs2_tune_init(&sdp->sd_tune);
for (x = 0; x < GFS2_GL_HASH_SIZE; x++) {
-
sdp->sd_gl_hash[x].hb_lock = RW_LOCK_UNLOCKED
;
+
rwlock_init(&sdp->sd_gl_hash[x].hb_lock)
;
INIT_LIST_HEAD(&sdp->sd_gl_hash[x].hb_list);
}
INIT_LIST_HEAD(&sdp->sd_reclaim_list);