/* gfs2_ail2_empty_one - Check whether or not a trans in the AIL has been synced @sdp: the filesystem @ai: the AIL entry  */
static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
/* gfs2_ail2_empty_one - Check whether or not a trans in the AIL has been synced @sdp: the filesystem @ai: the AIL entry  */
static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
{
	struct list_head *head = &ai->ai_ail2_list;
	struct gfs2_bufdata *bd;
	while (!list_empty(head)) {
		bd = list_entry(head->prev, struct gfs2_bufdata,
				bd_ail_st_list);
		gfs2_assert(sdp, bd->bd_ail == ai);
		gfs2_remove_from_ail(bd);
	}
}