/* gfs2_glock_schedule_for_reclaim - Add a glock to the reclaim list @gl: the glock  */
static void gfs2_glock_schedule_for_reclaim(struct gfs2_glock *gl)
/* gfs2_glock_schedule_for_reclaim - Add a glock to the reclaim list @gl: the glock  */
static void gfs2_glock_schedule_for_reclaim(struct gfs2_glock *gl)
{
	int may_reclaim;
	may_reclaim = (demote_ok(gl) &&
		       (atomic_read(&gl->gl_ref) == 1 ||
			(gl->gl_name.ln_type == LM_TYPE_INODE &&
			 atomic_read(&gl->gl_ref) <= 2)));
	spin_lock(&lru_lock);
	if (list_empty(&gl->gl_lru) && may_reclaim) {
		list_add_tail(&gl->gl_lru, &lru_list);
		atomic_inc(&lru_count);
	}
	spin_unlock(&lru_lock);
}