Lines Matching full:height

112  * that the height can be grown in the traditional way.
182 * @height: The pre-calculated height of the metadata tree
188 * Given: "ip" is a height 3 file, "offset" is 101342453, and this is a
238 struct metapath *mp, unsigned int height) in find_metapath() argument
242 for (i = height; i--;) in find_metapath()
256 * @height: The metadata height (0 = dinode)
259 * Return a pointer to the block number of the next height of the metadata
260 * tree given a buffer containing the pointer to the current height of the
264 static inline __be64 *metapointer(unsigned int height, const struct metapath *mp) in metapointer() argument
266 struct buffer_head *bh = mp->mp_bh[height]; in metapointer()
267 unsigned int head_size = (height > 0) ? in metapointer()
269 return ((__be64 *)(bh->b_data + head_size)) + mp->mp_list[height]; in metapointer()
306 * allocated, it returns the current height of the tree at the point
310 * Returns: error or height of metadata tree
424 * gfs2_bmap_alloc - Build a metadata tree of the requested height
429 * @sheight: The starting height (i.e. whats already mapped)
430 * @height: The height to build to
434 * i) Indirect blocks to grow the metadata tree height
450 const unsigned int height, in gfs2_bmap_alloc() argument
461 const unsigned end_of_metadata = height - 1; in gfs2_bmap_alloc()
473 if (height == sheight) { in gfs2_bmap_alloc()
484 ptrs_per_blk = height > 1 ? sdp->sd_inptrs : sdp->sd_diptrs; in gfs2_bmap_alloc()
486 if (height == ip->i_height) { in gfs2_bmap_alloc()
488 iblks = height - sheight; in gfs2_bmap_alloc()
491 /* Building up tree height */ in gfs2_bmap_alloc()
493 iblks = height - ip->i_height; in gfs2_bmap_alloc()
495 iblks += (height - branch_start); in gfs2_bmap_alloc()
513 /* Growing height of tree */ in gfs2_bmap_alloc()
520 for (; i - 1 < height - ip->i_height && n > 0; i++, n--) in gfs2_bmap_alloc()
522 if (i - 1 == height - ip->i_height) { in gfs2_bmap_alloc()
534 for(i = branch_start; i < height; i++) { in gfs2_bmap_alloc()
546 if (i > 1 && i < height) in gfs2_bmap_alloc()
548 for (; i < height && n > 0; i++, n--) in gfs2_bmap_alloc()
551 if (i == height) in gfs2_bmap_alloc()
578 ip->i_height = height; in gfs2_bmap_alloc()
616 u8 height; in gfs2_block_map() local
635 height = ip->i_height; in gfs2_block_map()
637 while (size > arr[height]) in gfs2_block_map()
638 height++; in gfs2_block_map()
639 find_metapath(sdp, lblock, &mp, height); in gfs2_block_map()
641 if (height > ip->i_height || gfs2_is_stuffed(ip)) in gfs2_block_map()
673 ret = gfs2_bmap_alloc(inode, lblock, bh_map, &mp, ret, height, maxlen); in gfs2_block_map()
708 * @height: the height this buffer is at
716 unsigned int height, struct strip_mine *sm) in do_strip() argument
732 if (height != sm->sm_height) in do_strip()
740 metadata = (height != ip->i_height - 1); in do_strip()
742 revokes = (height) ? sdp->sd_inptrs : sdp->sd_diptrs; in do_strip()
850 * @height: the height the recursion is at
855 * When this is first called @height and @block should be zero and
862 struct metapath *mp, unsigned int height, in recursive_scan() argument
872 if (!height) { in recursive_scan()
881 error = gfs2_meta_indirect_buffer(ip, height, block, 0, &bh); in recursive_scan()
886 (first ? mp->mp_list[height] : 0); in recursive_scan()
891 error = do_strip(ip, dibh, bh, top, bottom, height, sm); in recursive_scan()
895 if (height < ip->i_height - 1) { in recursive_scan()
905 error = recursive_scan(ip, dibh, mp, height + 1, bn, in recursive_scan()
1033 unsigned int height = ip->i_height; in trunc_dealloc() local
1051 while (height--) { in trunc_dealloc()
1054 sm.sm_height = height; in trunc_dealloc()