Home
last modified time | relevance | path

Searched refs:blocklen (Results 1 – 17 of 17) sorted by relevance

/fs/xfs/scrub/
A Drcbag_btree.c224 unsigned int blocklen, in rcbagbt_block_maxrecs() argument
228 return blocklen / sizeof(struct rcbag_rec); in rcbagbt_block_maxrecs()
229 return blocklen / in rcbagbt_block_maxrecs()
239 unsigned int blocklen, in rcbagbt_maxrecs() argument
242 blocklen -= RCBAG_BLOCK_LEN; in rcbagbt_maxrecs()
243 return rcbagbt_block_maxrecs(blocklen, leaf); in rcbagbt_maxrecs()
251 unsigned int blocklen; in rcbagbt_maxlevels_possible() local
253 blocklen = XFBNO_BLOCKSIZE - XFS_BTREE_LBLOCK_CRC_LEN; in rcbagbt_maxlevels_possible()
255 minrecs[0] = rcbagbt_block_maxrecs(blocklen, true) / 2; in rcbagbt_maxlevels_possible()
267 unsigned int blocklen; in rcbagbt_calc_size() local
[all …]
A Drcbag_btree.h54 unsigned int rcbagbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
/fs/xfs/libxfs/
A Dxfs_rmap_btree.c534 unsigned int blocklen, in xfs_rmapbt_mem_block_maxrecs() argument
538 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rmapbt_mem_block_maxrecs()
539 return blocklen / in xfs_rmapbt_mem_block_maxrecs()
657 unsigned int blocklen; in xfs_rmapbt_mem_maxlevels() local
701 unsigned int blocklen, in xfs_rmapbt_block_maxrecs() argument
705 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rmapbt_block_maxrecs()
706 return blocklen / in xfs_rmapbt_block_maxrecs()
716 unsigned int blocklen, in xfs_rmapbt_maxrecs() argument
719 blocklen -= XFS_RMAP_BLOCK_LEN; in xfs_rmapbt_maxrecs()
720 return xfs_rmapbt_block_maxrecs(blocklen, leaf); in xfs_rmapbt_maxrecs()
[all …]
A Dxfs_rtrefcount_btree.c86 unsigned int blocklen, in xfs_rtrefcountbt_droot_maxrecs() argument
89 blocklen -= sizeof(struct xfs_rtrefcount_root); in xfs_rtrefcountbt_droot_maxrecs()
92 return blocklen / sizeof(struct xfs_refcount_rec); in xfs_rtrefcountbt_droot_maxrecs()
93 return blocklen / (2 * sizeof(struct xfs_refcount_key) + in xfs_rtrefcountbt_droot_maxrecs()
457 unsigned int blocklen, in xfs_rtrefcountbt_block_maxrecs() argument
462 return blocklen / sizeof(struct xfs_refcount_rec); in xfs_rtrefcountbt_block_maxrecs()
463 return blocklen / (sizeof(struct xfs_refcount_key) + in xfs_rtrefcountbt_block_maxrecs()
473 unsigned int blocklen, in xfs_rtrefcountbt_maxrecs() argument
476 blocklen -= XFS_RTREFCOUNT_BLOCK_LEN; in xfs_rtrefcountbt_maxrecs()
477 return xfs_rtrefcountbt_block_maxrecs(blocklen, leaf); in xfs_rtrefcountbt_maxrecs()
[all …]
A Dxfs_bmap_btree.c693 unsigned int blocklen, in xfs_bmbt_block_maxrecs() argument
697 return blocklen / sizeof(xfs_bmbt_rec_t); in xfs_bmbt_block_maxrecs()
750 unsigned int blocklen, in xfs_bmbt_maxrecs() argument
753 blocklen -= xfs_bmbt_block_len(mp); in xfs_bmbt_maxrecs()
754 return xfs_bmbt_block_maxrecs(blocklen, leaf); in xfs_bmbt_maxrecs()
766 unsigned int blocklen; in xfs_bmbt_maxlevels_ondisk() local
768 blocklen = min(XFS_MIN_BLOCKSIZE - XFS_BTREE_SBLOCK_LEN, in xfs_bmbt_maxlevels_ondisk()
771 minrecs[0] = xfs_bmbt_block_maxrecs(blocklen, true) / 2; in xfs_bmbt_maxlevels_ondisk()
784 int blocklen, in xfs_bmdr_maxrecs() argument
787 blocklen -= sizeof(xfs_bmdr_block_t); in xfs_bmdr_maxrecs()
[all …]
A Dxfs_ialloc_btree.c565 unsigned int blocklen, in xfs_inobt_block_maxrecs() argument
569 return blocklen / sizeof(xfs_inobt_rec_t); in xfs_inobt_block_maxrecs()
579 unsigned int blocklen, in xfs_inobt_maxrecs() argument
582 blocklen -= XFS_INOBT_BLOCK_LEN(mp); in xfs_inobt_maxrecs()
583 return xfs_inobt_block_maxrecs(blocklen, leaf); in xfs_inobt_maxrecs()
599 unsigned int blocklen; in xfs_inobt_maxlevels_ondisk() local
601 blocklen = min(XFS_MIN_BLOCKSIZE - XFS_BTREE_SBLOCK_LEN, in xfs_inobt_maxlevels_ondisk()
604 minrecs[0] = xfs_inobt_block_maxrecs(blocklen, true) / 2; in xfs_inobt_maxlevels_ondisk()
605 minrecs[1] = xfs_inobt_block_maxrecs(blocklen, false) / 2; in xfs_inobt_maxlevels_ondisk()
615 unsigned int blocklen; in xfs_finobt_maxlevels_ondisk() local
[all …]
A Dxfs_refcount_btree.c407 unsigned int blocklen, in xfs_refcountbt_block_maxrecs() argument
411 return blocklen / sizeof(struct xfs_refcount_rec); in xfs_refcountbt_block_maxrecs()
412 return blocklen / (sizeof(struct xfs_refcount_key) + in xfs_refcountbt_block_maxrecs()
422 unsigned int blocklen, in xfs_refcountbt_maxrecs() argument
425 blocklen -= XFS_REFCOUNT_BLOCK_LEN; in xfs_refcountbt_maxrecs()
426 return xfs_refcountbt_block_maxrecs(blocklen, leaf); in xfs_refcountbt_maxrecs()
434 unsigned int blocklen; in xfs_refcountbt_maxlevels_ondisk() local
436 blocklen = XFS_MIN_CRC_BLOCKSIZE - XFS_BTREE_SBLOCK_CRC_LEN; in xfs_refcountbt_maxlevels_ondisk()
438 minrecs[0] = xfs_refcountbt_block_maxrecs(blocklen, true) / 2; in xfs_refcountbt_maxlevels_ondisk()
439 minrecs[1] = xfs_refcountbt_block_maxrecs(blocklen, false) / 2; in xfs_refcountbt_maxlevels_ondisk()
A Dxfs_alloc_btree.c553 unsigned int blocklen, in xfs_allocbt_block_maxrecs() argument
557 return blocklen / sizeof(xfs_alloc_rec_t); in xfs_allocbt_block_maxrecs()
558 return blocklen / (sizeof(xfs_alloc_key_t) + sizeof(xfs_alloc_ptr_t)); in xfs_allocbt_block_maxrecs()
567 unsigned int blocklen, in xfs_allocbt_maxrecs() argument
570 blocklen -= XFS_ALLOC_BLOCK_LEN(mp); in xfs_allocbt_maxrecs()
571 return xfs_allocbt_block_maxrecs(blocklen, leaf); in xfs_allocbt_maxrecs()
582 unsigned int blocklen; in xfs_allocbt_maxlevels_ondisk() local
584 blocklen = min(XFS_MIN_BLOCKSIZE - XFS_BTREE_SBLOCK_LEN, in xfs_allocbt_maxlevels_ondisk()
587 minrecs[0] = xfs_allocbt_block_maxrecs(blocklen, true) / 2; in xfs_allocbt_maxlevels_ondisk()
588 minrecs[1] = xfs_allocbt_block_maxrecs(blocklen, false) / 2; in xfs_allocbt_maxlevels_ondisk()
A Dxfs_rtrmap_btree.c86 unsigned int blocklen, in xfs_rtrmapbt_droot_maxrecs() argument
89 blocklen -= sizeof(struct xfs_rtrmap_root); in xfs_rtrmapbt_droot_maxrecs()
92 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rtrmapbt_droot_maxrecs()
93 return blocklen / (2 * sizeof(struct xfs_rmap_key) + in xfs_rtrmapbt_droot_maxrecs()
674 unsigned int blocklen, in xfs_rtrmapbt_block_maxrecs() argument
678 return blocklen / sizeof(struct xfs_rmap_rec); in xfs_rtrmapbt_block_maxrecs()
679 return blocklen / in xfs_rtrmapbt_block_maxrecs()
689 unsigned int blocklen, in xfs_rtrmapbt_maxrecs() argument
692 blocklen -= XFS_RTRMAP_BLOCK_LEN; in xfs_rtrmapbt_maxrecs()
693 return xfs_rtrmapbt_block_maxrecs(blocklen, leaf); in xfs_rtrmapbt_maxrecs()
[all …]
A Dxfs_btree_mem.c120 unsigned int blocklen = xfbtree_rec_bytes(mp, ops); in xfbtree_init() local
139 xfbt->maxrecs[0] = blocklen / ops->rec_len; in xfbtree_init()
140 xfbt->maxrecs[1] = blocklen / keyptr_len; in xfbtree_init()
A Dxfs_rtrefcount_btree.h26 unsigned int blocklen, bool leaf);
28 unsigned int xfs_rtrefcountbt_droot_maxrecs(unsigned int blocklen, bool leaf);
A Dxfs_bmap_btree.h37 extern int xfs_bmdr_maxrecs(int blocklen, int leaf);
38 unsigned int xfs_bmbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
A Dxfs_rtrmap_btree.h26 unsigned int xfs_rtrmapbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
29 unsigned int xfs_rtrmapbt_droot_maxrecs(unsigned int blocklen, bool leaf);
A Dxfs_alloc_btree.h56 unsigned int xfs_allocbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
A Dxfs_refcount_btree.h51 unsigned int xfs_refcountbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
A Dxfs_ialloc_btree.h53 unsigned int xfs_inobt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,
A Dxfs_rmap_btree.h50 unsigned int xfs_rmapbt_maxrecs(struct xfs_mount *mp, unsigned int blocklen,

Completed in 31 milliseconds