Lines Matching refs:height

239 			  struct metapath *mp, unsigned int height)  in find_metapath()  argument
243 for (i = height; i--;) in find_metapath()
265 static inline __be64 *metapointer(unsigned int height, const struct metapath *mp) in metapointer() argument
267 struct buffer_head *bh = mp->mp_bh[height]; in metapointer()
268 unsigned int head_size = (height > 0) ? in metapointer()
270 return ((__be64 *)(bh->b_data + head_size)) + mp->mp_list[height]; in metapointer()
451 const unsigned int height, in gfs2_bmap_alloc() argument
462 const unsigned end_of_metadata = height - 1; in gfs2_bmap_alloc()
474 if (height == sheight) { in gfs2_bmap_alloc()
485 ptrs_per_blk = height > 1 ? sdp->sd_inptrs : sdp->sd_diptrs; in gfs2_bmap_alloc()
488 if (height == ip->i_height) { in gfs2_bmap_alloc()
490 iblks = height - sheight; in gfs2_bmap_alloc()
495 iblks = height - ip->i_height; in gfs2_bmap_alloc()
497 iblks += (height - branch_start); in gfs2_bmap_alloc()
522 for (; i - 1 < height - ip->i_height && n > 0; i++, n--) in gfs2_bmap_alloc()
524 if (i - 1 == height - ip->i_height) { in gfs2_bmap_alloc()
536 for(i = branch_start; i < height; i++) { in gfs2_bmap_alloc()
548 if (i > 1 && i < height) in gfs2_bmap_alloc()
550 for (; i < height && n > 0; i++, n--) in gfs2_bmap_alloc()
553 if (i == height) in gfs2_bmap_alloc()
580 ip->i_height = height; in gfs2_bmap_alloc()
618 u8 height; in gfs2_block_map() local
637 height = ip->i_height; in gfs2_block_map()
639 while (size > arr[height]) in gfs2_block_map()
640 height++; in gfs2_block_map()
641 find_metapath(sdp, lblock, &mp, height); in gfs2_block_map()
643 if (height > ip->i_height || gfs2_is_stuffed(ip)) in gfs2_block_map()
675 ret = gfs2_bmap_alloc(inode, lblock, bh_map, &mp, ret, height, maxlen); in gfs2_block_map()
718 unsigned int height, struct strip_mine *sm) in do_strip() argument
738 if (height != sm->sm_height) in do_strip()
746 metadata = (height != ip->i_height - 1); in do_strip()
748 revokes = (height) ? sdp->sd_inptrs : sdp->sd_diptrs; in do_strip()
871 struct metapath *mp, unsigned int height, in recursive_scan() argument
881 if (!height) { in recursive_scan()
890 error = gfs2_meta_indirect_buffer(ip, height, block, &bh); in recursive_scan()
895 (first ? mp->mp_list[height] : 0); in recursive_scan()
900 error = do_strip(ip, dibh, bh, top, bottom, height, sm); in recursive_scan()
904 if (height < ip->i_height - 1) { in recursive_scan()
914 error = recursive_scan(ip, dibh, mp, height + 1, bn, in recursive_scan()
1088 unsigned int height = ip->i_height; in trunc_dealloc() local
1107 while (height--) { in trunc_dealloc()
1110 sm.sm_height = height; in trunc_dealloc()