aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/gfs2/glock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 4a2e90dc1d02..679cb836ed0c 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -83,7 +83,7 @@ static inline int relaxed_state_ok(unsigned int actual, unsigned requested,
83 * Returns: The number of the corresponding hash bucket 83 * Returns: The number of the corresponding hash bucket
84 */ 84 */
85 85
86static unsigned int gl_hash(struct lm_lockname *name) 86static unsigned int gl_hash(const struct lm_lockname *name)
87{ 87{
88 unsigned int h; 88 unsigned int h;
89 89
@@ -200,7 +200,7 @@ static inline int queue_empty(struct gfs2_glock *gl, struct list_head *head)
200 */ 200 */
201 201
202static struct gfs2_glock *search_bucket(struct gfs2_gl_hash_bucket *bucket, 202static struct gfs2_glock *search_bucket(struct gfs2_gl_hash_bucket *bucket,
203 struct lm_lockname *name) 203 const struct lm_lockname *name)
204{ 204{
205 struct gfs2_glock *gl; 205 struct gfs2_glock *gl;
206 206
@@ -227,7 +227,7 @@ static struct gfs2_glock *search_bucket(struct gfs2_gl_hash_bucket *bucket,
227 */ 227 */
228 228
229static struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp, 229static struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp,
230 struct lm_lockname *name) 230 const struct lm_lockname *name)
231{ 231{
232 struct gfs2_gl_hash_bucket *bucket = &sdp->sd_gl_hash[gl_hash(name)]; 232 struct gfs2_gl_hash_bucket *bucket = &sdp->sd_gl_hash[gl_hash(name)];
233 struct gfs2_glock *gl; 233 struct gfs2_glock *gl;