Lines Matching refs:bd2
418 struct gfs2_bufdata *bd1 = NULL, *bd2; in gfs2_before_commit() local
426 bd1 = bd2 = list_prepare_entry(bd1, blist, bd_list); in gfs2_before_commit()
455 list_for_each_entry_continue(bd2, blist, bd_list) { in gfs2_before_commit()
456 get_bh(bd2->bd_bh); in gfs2_before_commit()
458 lock_buffer(bd2->bd_bh); in gfs2_before_commit()
460 if (buffer_escaped(bd2->bd_bh)) { in gfs2_before_commit()
464 kaddr = kmap_atomic(bd2->bd_bh->b_page); in gfs2_before_commit()
465 memcpy(ptr, kaddr + bh_offset(bd2->bd_bh), in gfs2_before_commit()
466 bd2->bd_bh->b_size); in gfs2_before_commit()
469 clear_buffer_escaped(bd2->bd_bh); in gfs2_before_commit()
470 unlock_buffer(bd2->bd_bh); in gfs2_before_commit()
471 brelse(bd2->bd_bh); in gfs2_before_commit()
474 gfs2_log_write_bh(sdp, bd2->bd_bh); in gfs2_before_commit()