aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-08-30 11:16:23 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-30 11:16:23 -0400
commitd6a53727683bbf993c01ab49b45e0eac17e23df1 (patch)
treec17d58d664222633c254f09561eed847c1ccef59 /fs/gfs2/glock.c
parentec45d9f583b3663f90a7c5c559fd13e6e4c56ad5 (diff)
downloadkernel_samsung_espresso10-d6a53727683bbf993c01ab49b45e0eac17e23df1.zip
kernel_samsung_espresso10-d6a53727683bbf993c01ab49b45e0eac17e23df1.tar.gz
kernel_samsung_espresso10-d6a53727683bbf993c01ab49b45e0eac17e23df1.tar.bz2
[GFS2] Use const on glock lookup key
Use const for the glock name which is being used as a lookup key in the glock hash table. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.c')
-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 4a2e90d..679cb83 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,
* 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;