/* * Address of pointers within the incore btree root. * * These are to be used when we know the size of the block and * we don't have a cursor.
*/ staticinline xfs_bmbt_ptr_t *
xfs_bmap_broot_ptr_addr( struct xfs_mount *mp, struct xfs_btree_block *bb, unsignedint i, unsignedint sz)
{ return xfs_bmbt_ptr_addr(mp, bb, i, xfs_bmbt_maxrecs(mp, sz, false));
}
/* * Compute the space required for the incore btree root containing the given * number of records.
*/ staticinline size_t
xfs_bmap_broot_space_calc( struct xfs_mount *mp, unsignedint nrecs)
{ return xfs_bmbt_block_len(mp) +
(nrecs * (sizeof(struct xfs_bmbt_key) + sizeof(xfs_bmbt_ptr_t)));
}
/* * Compute the space required for the incore btree root given the ondisk * btree root block.
*/ staticinline size_t
xfs_bmap_broot_space( struct xfs_mount *mp, struct xfs_bmdr_block *bb)
{ return xfs_bmap_broot_space_calc(mp, be16_to_cpu(bb->bb_numrecs));
}
/* Compute the space required for the ondisk root block. */ staticinline size_t
xfs_bmdr_space_calc(unsignedint nrecs)
{ returnsizeof(struct xfs_bmdr_block) +
(nrecs * (sizeof(struct xfs_bmbt_key) + sizeof(xfs_bmbt_ptr_t)));
}
/* * Compute the space required for the ondisk root block given an incore root * block.
*/ staticinline size_t
xfs_bmap_bmdr_space(struct xfs_btree_block *bb)
{ return xfs_bmdr_space_calc(be16_to_cpu(bb->bb_numrecs));
}
struct xfs_btree_block *xfs_bmap_broot_realloc(struct xfs_inode *ip, int whichfork, unsignedint new_numrecs);
#endif/* __XFS_BMAP_BTREE_H__ */
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.