Home
last modified time | relevance | path

Searched refs:nrecs (Results 1 – 5 of 5) sorted by relevance

/linux/fs/xfs/libxfs/
H A Dxfs_rtrefcount_btree.h134 unsigned int nrecs) in xfs_rtrefcount_broot_space_calc() argument
139 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() argument
164 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()
H A Dxfs_rtrmap_btree.h145 unsigned int nrecs) in xfs_rtrmap_broot_space_calc() argument
150 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() argument
175 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()
H A Dxfs_bmap_btree.h165 unsigned int nrecs) in xfs_bmap_broot_space_calc() argument
168 (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() argument
188 (nrecs * (sizeof(struct xfs_bmbt_key) + sizeof(xfs_bmbt_ptr_t))); in xfs_bmdr_space_calc()
H A Dxfs_inode_fork.c184 int nrecs; in xfs_iformat_btree() local
191 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()
/linux/fs/xfs/scrub/
H A Dinode_repair.c906 unsigned int nrecs; in xrep_dinode_bad_bmbt_fork() local
917 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() local
961 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() local
989 nrecs = be16_to_cpu(dfp->bb_numrecs); in xrep_dinode_bad_rtrefcountbt_fork()
[all …]