From 565c348f1861c43c1605d3c7a38381e35b78df24 Mon Sep 17 00:00:00 2001 From: Steven Whitehouse Date: Wed, 30 Aug 2006 11:16:23 -0400 Subject: [PATCH] --- yaml --- r: 38807 b: refs/heads/master c: d6a53727683bbf993c01ab49b45e0eac17e23df1 h: refs/heads/master i: 38805: 72a08ccda9559dbf9fa2dc491fae0820aa3bf614 38803: 0f7d2e5e2ad046046546fae05e64fdbe7b797a76 38799: d512456c685f34707a2268b83fbe5814b2edb1fb v: v3 --- [refs] | 2 +- trunk/fs/gfs2/glock.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index dfb856c02b37..b3c112c44f5b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ec45d9f583b3663f90a7c5c559fd13e6e4c56ad5 +refs/heads/master: d6a53727683bbf993c01ab49b45e0eac17e23df1 diff --git a/trunk/fs/gfs2/glock.c b/trunk/fs/gfs2/glock.c index 4a2e90dc1d02..679cb836ed0c 100644 --- a/trunk/fs/gfs2/glock.c +++ b/trunk/fs/gfs2/glock.c @@ -83,7 +83,7 @@ static inline int relaxed_state_ok(unsigned int actual, unsigned requested, * Returns: The number of the corresponding hash bucket */ -static unsigned int gl_hash(struct lm_lockname *name) +static unsigned int gl_hash(const struct lm_lockname *name) { unsigned int h; @@ -200,7 +200,7 @@ static inline int queue_empty(struct gfs2_glock *gl, struct list_head *head) */ static struct gfs2_glock *search_bucket(struct gfs2_gl_hash_bucket *bucket, - struct lm_lockname *name) + const struct lm_lockname *name) { struct gfs2_glock *gl; @@ -227,7 +227,7 @@ static struct gfs2_glock *search_bucket(struct gfs2_gl_hash_bucket *bucket, */ static struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp, - struct lm_lockname *name) + const struct lm_lockname *name) { struct gfs2_gl_hash_bucket *bucket = &sdp->sd_gl_hash[gl_hash(name)]; struct gfs2_glock *gl;