Lines Matching refs:bh
373 struct buffer_head *bh; in bh_get() local
391 error = gfs2_meta_read(ip->i_gl, bh_map.b_blocknr, DIO_WAIT, &bh); in bh_get()
395 if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_QC)) in bh_get()
398 qd->qd_bh = bh; in bh_get()
400 (bh->b_data + sizeof(struct gfs2_meta_header) + in bh_get()
408 brelse(bh); in bh_get()
679 struct buffer_head *bh; in gfs2_adjust_quota() local
729 bh = page_buffers(page); in gfs2_adjust_quota()
732 bh = bh->b_this_page; in gfs2_adjust_quota()
737 if (!buffer_mapped(bh)) { in gfs2_adjust_quota()
738 gfs2_block_map(inode, iblock, bh, 1); in gfs2_adjust_quota()
739 if (!buffer_mapped(bh)) in gfs2_adjust_quota()
742 if (buffer_new(bh)) in gfs2_adjust_quota()
743 zero_user(page, pos - blocksize, bh->b_size); in gfs2_adjust_quota()
747 set_buffer_uptodate(bh); in gfs2_adjust_quota()
749 if (!buffer_uptodate(bh)) { in gfs2_adjust_quota()
750 ll_rw_block(READ | REQ_META, 1, &bh); in gfs2_adjust_quota()
751 wait_on_buffer(bh); in gfs2_adjust_quota()
752 if (!buffer_uptodate(bh)) in gfs2_adjust_quota()
756 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_adjust_quota()
1284 struct buffer_head *bh; in gfs2_quota_init() local
1295 bh = gfs2_meta_ra(ip->i_gl, dblock, extlen); in gfs2_quota_init()
1296 if (!bh) in gfs2_quota_init()
1298 if (gfs2_metatype_check(sdp, bh, GFS2_METATYPE_QC)) { in gfs2_quota_init()
1299 brelse(bh); in gfs2_quota_init()
1303 qc = (const struct gfs2_quota_change *)(bh->b_data + sizeof(struct gfs2_meta_header)); in gfs2_quota_init()
1320 brelse(bh); in gfs2_quota_init()
1342 brelse(bh); in gfs2_quota_init()