/* state_change - record that the glock is now in a different state @gl: the glock @new_state the new state  */
static void state_change(struct gfs2_glock *gl, unsigned int new_state)
/* state_change - record that the glock is now in a different state @gl: the glock @new_state the new state  */
static void state_change(struct gfs2_glock *gl, unsigned int new_state)
{
	int held1, held2;
	held1 = (gl->gl_state != LM_ST_UNLOCKED);
	held2 = (new_state != LM_ST_UNLOCKED);
	if (held1 != held2) {
		if (held2)
			gfs2_glock_hold(gl);
		else
			gfs2_glock_put_nolock(gl);
	}
	gl->gl_state = new_state;
	gl->gl_tchange = jiffies;
}