/* gfs2_holder_init - initialize a struct gfs2_holder in the default way @gl: the glock @state: the state we're requesting @flags: the modifier flags @gh: the holder structure  */
void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags, struct gfs2_holder *gh)
/* gfs2_holder_init - initialize a struct gfs2_holder in the default way @gl: the glock @state: the state we're requesting @flags: the modifier flags @gh: the holder structure  */
void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags, struct gfs2_holder *gh)
{
	INIT_LIST_HEAD(&gh->gh_list);
	gh->gh_gl = gl;
	gh->gh_ip = (unsigned long)__builtin_return_address(0);
	gh->gh_owner_pid = get_pid(task_pid(current));
	gh->gh_state = state;
	gh->gh_flags = flags;
	gh->gh_error = 0;
	gh->gh_iflags = 0;
	gfs2_glock_hold(gl);
}