/* Returns: The number of the corresponding hash bucket  */
static unsigned int gl_hash(const struct gfs2_sbd *sdp, const struct lm_lockname *name)
/* Returns: The number of the corresponding hash bucket  */
static unsigned int gl_hash(const struct gfs2_sbd *sdp, const struct lm_lockname *name)
{
	unsigned int h;
	h = jhash(&name->ln_number, sizeof(u64), 0);
	h = jhash(&name->ln_type, sizeof(unsigned int), h);
	h = jhash(&sdp, sizeof(struct gfs2_sbd *), h);
	h &= GFS2_GL_HASH_MASK;
	return h;
}