Lines Matching refs:mp_bh
37 struct buffer_head *mp_bh[GFS2_MAX_META_HEIGHT]; member
262 struct buffer_head *bh = mp->mp_bh[height]; in metaptr1()
286 const struct buffer_head *bh = mp->mp_bh[height]; in metaend()
296 get_bh(clone->mp_bh[hgt]); in clone_metapath()
333 ret = gfs2_meta_buffer(ip, GFS2_METATYPE_IN, dblock, &mp->mp_bh[x + 1]); in __fillup_metapath()
382 if (mp->mp_bh[x]) in fillup_metapath()
410 if (mp->mp_bh[i] == NULL) in release_metapath()
412 brelse(mp->mp_bh[i]); in release_metapath()
413 mp->mp_bh[i] = NULL; in release_metapath()
520 brelse(mp->mp_bh[hgt]); in gfs2_walk_metadata()
521 mp->mp_bh[hgt] = NULL; in gfs2_walk_metadata()
612 __be64 *ptr = (__be64 *)(mp->mp_bh[i - 1]->b_data + in gfs2_indirect_init()
616 BUG_ON(mp->mp_bh[i] != NULL); in gfs2_indirect_init()
617 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init()
618 gfs2_trans_add_meta(gl, mp->mp_bh[i]); in gfs2_indirect_init()
619 gfs2_metatype_set(mp->mp_bh[i], GFS2_METATYPE_IN, GFS2_FORMAT_IN); in gfs2_indirect_init()
620 gfs2_buffer_clear_tail(mp->mp_bh[i], sizeof(struct gfs2_meta_header)); in gfs2_indirect_init()
666 struct buffer_head *dibh = mp->mp_bh[0]; in __gfs2_iomap_alloc()
727 gfs2_buffer_copy_tail(mp->mp_bh[i], in __gfs2_iomap_alloc()
733 ptr = (__be64 *)(mp->mp_bh[i]->b_data + in __gfs2_iomap_alloc()
738 if (mp->mp_bh[i] == NULL) in __gfs2_iomap_alloc()
740 brelse(mp->mp_bh[i]); in __gfs2_iomap_alloc()
741 mp->mp_bh[i] = NULL; in __gfs2_iomap_alloc()
750 gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[i-1]); in __gfs2_iomap_alloc()
761 BUG_ON(mp->mp_bh[end_of_metadata] == NULL); in __gfs2_iomap_alloc()
762 gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[end_of_metadata]); in __gfs2_iomap_alloc()
864 mp->mp_bh[0] = dibh; in __gfs2_iomap_get()
918 bh = mp->mp_bh[ip->i_height - 1]; in __gfs2_iomap_get()
1615 struct buffer_head *bh = mp->mp_bh[h]; in find_nonnull_ptr()
1652 struct buffer_head *bh = mp->mp_bh[height]; in metapointer_range()
1779 mp.mp_bh[0] = dibh; in punch_hole()
1812 bh = mp.mp_bh[mp_h]; in punch_hole()
1839 ret = sweep_bh_for_rgrps(ip, &rd_gh, mp.mp_bh[mp_h], in punch_hole()
1859 brelse(mp.mp_bh[mp_h]); in punch_hole()
1860 mp.mp_bh[mp_h] = NULL; in punch_hole()