Searched refs:nrecs (Results 1 – 5 of 5) sorted by relevance
134 unsigned int nrecs) in xfs_rtrefcount_broot_space_calc() argument139 return sz + nrecs * (sizeof(struct xfs_refcount_key) + in xfs_rtrefcount_broot_space_calc()141 return sz + nrecs * sizeof(struct xfs_refcount_rec); in xfs_rtrefcount_broot_space_calc()159 unsigned int nrecs) in xfs_rtrefcount_droot_space_calc() argument164 return sz + nrecs * (sizeof(struct xfs_refcount_key) + in xfs_rtrefcount_droot_space_calc()166 return sz + nrecs * sizeof(struct xfs_refcount_rec); in xfs_rtrefcount_droot_space_calc()
145 unsigned int nrecs) in xfs_rtrmap_broot_space_calc() argument150 return sz + nrecs * (2 * sizeof(struct xfs_rmap_key) + in xfs_rtrmap_broot_space_calc()152 return sz + nrecs * sizeof(struct xfs_rmap_rec); in xfs_rtrmap_broot_space_calc()170 unsigned int nrecs) in xfs_rtrmap_droot_space_calc() argument175 return sz + nrecs * (2 * sizeof(struct xfs_rmap_key) + in xfs_rtrmap_droot_space_calc()177 return sz + nrecs * sizeof(struct xfs_rmap_rec); in xfs_rtrmap_droot_space_calc()
165 unsigned int nrecs) in xfs_bmap_broot_space_calc() argument168 (nrecs * (sizeof(struct xfs_bmbt_key) + sizeof(xfs_bmbt_ptr_t))); in xfs_bmap_broot_space_calc()185 xfs_bmdr_space_calc(unsigned int nrecs) in xfs_bmdr_space_calc() argument188 (nrecs * (sizeof(struct xfs_bmbt_key) + sizeof(xfs_bmbt_ptr_t))); in xfs_bmdr_space_calc()
184 int nrecs; in xfs_iformat_btree() local191 nrecs = be16_to_cpu(dfp->bb_numrecs); in xfs_iformat_btree()202 nrecs == 0 || in xfs_iformat_btree()203 xfs_bmdr_space_calc(nrecs) > in xfs_iformat_btree()
906 unsigned int nrecs; in xrep_dinode_bad_bmbt_fork() local917 nrecs = be16_to_cpu(dfp->bb_numrecs); in xrep_dinode_bad_bmbt_fork()920 if (nrecs == 0 || xfs_bmdr_space_calc(nrecs) > dfork_size) in xrep_dinode_bad_bmbt_fork()926 for (i = 1; i <= nrecs; i++) { in xrep_dinode_bad_bmbt_fork()954 unsigned int nrecs; in xrep_dinode_bad_rtrmapbt_fork() local961 nrecs = be16_to_cpu(dfp->bb_numrecs); in xrep_dinode_bad_rtrmapbt_fork()966 if (xfs_rtrmap_droot_space_calc(level, nrecs) > dfork_size) in xrep_dinode_bad_rtrmapbt_fork()968 if (level > 0 && nrecs == 0) in xrep_dinode_bad_rtrmapbt_fork()982 unsigned int nrecs; in xrep_dinode_bad_rtrefcountbt_fork() local989 nrecs = be16_to_cpu(dfp->bb_numrecs); in xrep_dinode_bad_rtrefcountbt_fork()[all …]