Lines Matching refs:bd
74 void gfs2_remove_from_ail(struct gfs2_bufdata *bd) in gfs2_remove_from_ail() argument
76 bd->bd_ail = NULL; in gfs2_remove_from_ail()
77 list_del_init(&bd->bd_ail_st_list); in gfs2_remove_from_ail()
78 list_del_init(&bd->bd_ail_gl_list); in gfs2_remove_from_ail()
79 atomic_dec(&bd->bd_gl->gl_ail_count); in gfs2_remove_from_ail()
80 brelse(bd->bd_bh); in gfs2_remove_from_ail()
94 struct gfs2_bufdata *bd, *s; in gfs2_ail1_start_one() local
101 list_for_each_entry_safe_reverse(bd, s, &ai->ai_ail1_list, in gfs2_ail1_start_one()
103 bh = bd->bd_bh; in gfs2_ail1_start_one()
105 gfs2_assert(sdp, bd->bd_ail == ai); in gfs2_ail1_start_one()
110 list_move(&bd->bd_ail_st_list, &ai->ai_ail2_list); in gfs2_ail1_start_one()
117 list_move(&bd->bd_ail_st_list, &ai->ai_ail1_list); in gfs2_ail1_start_one()
146 struct gfs2_bufdata *bd, *s; in gfs2_ail1_empty_one() local
149 list_for_each_entry_safe_reverse(bd, s, &ai->ai_ail1_list, in gfs2_ail1_empty_one()
151 bh = bd->bd_bh; in gfs2_ail1_empty_one()
153 gfs2_assert(sdp, bd->bd_ail == ai); in gfs2_ail1_empty_one()
165 list_move(&bd->bd_ail_st_list, &ai->ai_ail2_list); in gfs2_ail1_empty_one()
246 struct gfs2_bufdata *bd; in gfs2_ail2_empty_one() local
249 bd = list_entry(head->prev, struct gfs2_bufdata, in gfs2_ail2_empty_one()
251 gfs2_assert(sdp, bd->bd_ail == ai); in gfs2_ail2_empty_one()
252 gfs2_remove_from_ail(bd); in gfs2_ail2_empty_one()
513 struct gfs2_bufdata *bd = real_bh->b_private; in gfs2_fake_write_endio() local
514 struct gfs2_sbd *sdp = bd->bd_gl->gl_sbd; in gfs2_fake_write_endio()
652 struct gfs2_bufdata *bd; in gfs2_ordered_write() local
658 bd = list_entry(sdp->sd_log_le_ordered.next, struct gfs2_bufdata, bd_le.le_list); in gfs2_ordered_write()
659 list_move(&bd->bd_le.le_list, &written); in gfs2_ordered_write()
660 bh = bd->bd_bh; in gfs2_ordered_write()
681 struct gfs2_bufdata *bd; in gfs2_ordered_wait() local
686 bd = list_entry(sdp->sd_log_le_ordered.prev, struct gfs2_bufdata, bd_le.le_list); in gfs2_ordered_wait()
687 bh = bd->bd_bh; in gfs2_ordered_wait()
696 list_del_init(&bd->bd_le.le_list); in gfs2_ordered_wait()
802 struct gfs2_bufdata *bd; in buf_lo_incore_commit() local
806 bd = list_entry(head->next, struct gfs2_bufdata, bd_list_tr); in buf_lo_incore_commit()
807 list_del_init(&bd->bd_list_tr); in buf_lo_incore_commit()