Lines Matching refs:mp_bh
37 struct buffer_head *mp_bh[GFS2_MAX_META_HEIGHT]; member
259 struct buffer_head *bh = mp->mp_bh[height]; in metaptr1()
283 const struct buffer_head *bh = mp->mp_bh[height]; in metaend()
293 get_bh(clone->mp_bh[hgt]); in clone_metapath()
330 ret = gfs2_meta_buffer(ip, GFS2_METATYPE_IN, dblock, &mp->mp_bh[x + 1]); in __fillup_metapath()
379 if (mp->mp_bh[x]) in fillup_metapath()
407 if (mp->mp_bh[i] == NULL) in release_metapath()
409 brelse(mp->mp_bh[i]); in release_metapath()
410 mp->mp_bh[i] = NULL; in release_metapath()
517 brelse(mp->mp_bh[hgt]);
518 mp->mp_bh[hgt] = NULL;
609 __be64 *ptr = (__be64 *)(mp->mp_bh[i - 1]->b_data + in gfs2_indirect_init()
613 BUG_ON(mp->mp_bh[i] != NULL); in gfs2_indirect_init()
614 mp->mp_bh[i] = gfs2_meta_new(gl, bn); in gfs2_indirect_init()
615 gfs2_trans_add_meta(gl, mp->mp_bh[i]); in gfs2_indirect_init()
616 gfs2_metatype_set(mp->mp_bh[i], GFS2_METATYPE_IN, GFS2_FORMAT_IN); in gfs2_indirect_init()
617 gfs2_buffer_clear_tail(mp->mp_bh[i], sizeof(struct gfs2_meta_header)); in gfs2_indirect_init()
663 struct buffer_head *dibh = mp->mp_bh[0]; in __gfs2_iomap_alloc()
724 gfs2_buffer_copy_tail(mp->mp_bh[i], in __gfs2_iomap_alloc()
730 ptr = (__be64 *)(mp->mp_bh[i]->b_data + in __gfs2_iomap_alloc()
735 if (mp->mp_bh[i] == NULL) in __gfs2_iomap_alloc()
737 brelse(mp->mp_bh[i]); in __gfs2_iomap_alloc()
738 mp->mp_bh[i] = NULL; in __gfs2_iomap_alloc()
747 gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[i-1]); in __gfs2_iomap_alloc()
758 BUG_ON(mp->mp_bh[end_of_metadata] == NULL); in __gfs2_iomap_alloc()
759 gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[end_of_metadata]); in __gfs2_iomap_alloc()
861 mp->mp_bh[0] = dibh; in __gfs2_iomap_get()
915 bh = mp->mp_bh[ip->i_height - 1]; in __gfs2_iomap_get()
1625 struct buffer_head *bh = mp->mp_bh[h]; in find_nonnull_ptr()
1662 struct buffer_head *bh = mp->mp_bh[height]; in metapointer_range()
1789 mp.mp_bh[0] = dibh; in punch_hole()
1822 bh = mp.mp_bh[mp_h]; in punch_hole()
1849 ret = sweep_bh_for_rgrps(ip, &rd_gh, mp.mp_bh[mp_h], in punch_hole()
1869 brelse(mp.mp_bh[mp_h]); in punch_hole()
1870 mp.mp_bh[mp_h] = NULL; in punch_hole()