aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-07-20 16:27:42 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-07-20 23:30:06 -0400
commit612645f7cfe1221f8066b87d62089719bcf43f68 (patch)
treeb7476b199dd344ce37432c940493e3fbff45f545 /fs/ocfs2/dlm
parent8ac790f312c47bb378fb129d3832d401945a0ca3 (diff)
qstr: constify instances in ocfs2
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/dlm')
-rw-r--r--fs/ocfs2/dlm/dlmdomain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c
index 12e064b8be9a..533bd524e41e 100644
--- a/fs/ocfs2/dlm/dlmdomain.c
+++ b/fs/ocfs2/dlm/dlmdomain.c
@@ -172,12 +172,10 @@ void __dlm_unhash_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
172void __dlm_insert_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res) 172void __dlm_insert_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
173{ 173{
174 struct hlist_head *bucket; 174 struct hlist_head *bucket;
175 struct qstr *q;
176 175
177 assert_spin_locked(&dlm->spinlock); 176 assert_spin_locked(&dlm->spinlock);
178 177
179 q = &res->lockname; 178 bucket = dlm_lockres_hash(dlm, res->lockname.hash);
180 bucket = dlm_lockres_hash(dlm, q->hash);
181 179
182 /* get a reference for our hashtable */ 180 /* get a reference for our hashtable */
183 dlm_lockres_get(res); 181 dlm_lockres_get(res);