FreeBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
/*
 * Return the maximum contiguous segment within the metaslab.
 */
Return the maximum contiguous segment within the metaslab.
Return the maximum contiguous segment within the metaslab .
uint64_t
metaslab_block_maxsize(metaslab_t *msp)
{
	avl_tree_t *t = &msp->ms_size_tree;
	range_seg_t *rs;
	if (t == NULL || (rs = avl_last(t)) == NULL)
		return (0ULL);
	return (rs->rs_end - rs->rs_start);
}
uint64_t metaslab_block_maxsize ( metaslab_t * msp ) { avl_tree_t * t = & msp -> ms_size_tree ; range_seg_t * rs ; if ( t == NULL || ( rs = avl_last ( t ) ) == NULL ) return ( 0ULL ) ; return ( rs -> rs_end - rs -> rs_start ) ; }
Return the maximum contiguous segment within the metaslab.
Return the maximum contiguous segment within the metaslab .