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>
* 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;
*/
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;
*/
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;