Home
last modified time | relevance | path

Searched refs:fsbno (Results 1 – 11 of 11) sorted by relevance

/fs/xfs/
Dxfs_ialloc_btree.c91 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_private.a.agno, sbno); in xfs_inobt_alloc_block()
102 if (args.fsbno == NULLFSBLOCK) { in xfs_inobt_alloc_block()
110 new->s = cpu_to_be32(XFS_FSB_TO_AGBNO(args.mp, args.fsbno)); in xfs_inobt_alloc_block()
120 xfs_fsblock_t fsbno; in xfs_inobt_free_block() local
123 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_inobt_free_block()
124 error = xfs_free_extent(cur->bc_tp, fsbno, 1); in xfs_inobt_free_block()
Dxfs_sb.h509 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument
510 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
520 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument
529 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) argument
Dxfs_ag.h231 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument
232 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog))
233 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument
234 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
Dxfs_bmap_btree.c535 args.fsbno = cur->bc_private.b.firstblock; in xfs_bmbt_alloc_block()
536 args.firstblock = args.fsbno; in xfs_bmbt_alloc_block()
538 if (args.fsbno == NULLFSBLOCK) { in xfs_bmbt_alloc_block()
539 args.fsbno = be64_to_cpu(start->l); in xfs_bmbt_alloc_block()
569 if (args.fsbno == NULLFSBLOCK && args.minleft) { in xfs_bmbt_alloc_block()
575 args.fsbno = 0; in xfs_bmbt_alloc_block()
583 if (args.fsbno == NULLFSBLOCK) { in xfs_bmbt_alloc_block()
589 cur->bc_private.b.firstblock = args.fsbno; in xfs_bmbt_alloc_block()
596 new->l = cpu_to_be64(args.fsbno); in xfs_bmbt_alloc_block()
615 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp)); in xfs_bmbt_free_block() local
[all …]
Dxfs_btree.h333 xfs_fsblock_t fsbno, /* file system block number */
376 xfs_fsblock_t fsbno, /* file system block number */
402 xfs_fsblock_t fsbno, /* file system block number */
Dxfs_alloc.c2376 ASSERT(XFS_FSB_TO_AGNO(mp, args->fsbno) < mp->m_sb.sb_agcount); in xfs_alloc_vextent()
2377 ASSERT(XFS_FSB_TO_AGBNO(mp, args->fsbno) < agsize); in xfs_alloc_vextent()
2381 if (XFS_FSB_TO_AGNO(mp, args->fsbno) >= mp->m_sb.sb_agcount || in xfs_alloc_vextent()
2382 XFS_FSB_TO_AGBNO(mp, args->fsbno) >= agsize || in xfs_alloc_vextent()
2385 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent()
2398 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
2413 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xfs_alloc_vextent()
2425 args->fsbno = XFS_AGB_TO_FSB(mp, in xfs_alloc_vextent()
2430 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xfs_alloc_vextent()
2451 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
[all …]
Dxfs_ialloc.c209 args.fsbno = XFS_AGB_TO_FSB(args.mp, in xfs_ialloc_ag_alloc()
237 args.fsbno = NULLFSBLOCK; in xfs_ialloc_ag_alloc()
239 if (unlikely(args.fsbno == NULLFSBLOCK)) { in xfs_ialloc_ag_alloc()
261 args.fsbno = XFS_AGB_TO_FSB(args.mp, in xfs_ialloc_ag_alloc()
282 if (isaligned && args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
285 args.fsbno = XFS_AGB_TO_FSB(args.mp, in xfs_ialloc_ag_alloc()
292 if (args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
Dxfs_alloc.h76 xfs_fsblock_t fsbno; /* file system block number */ member
Dxfs_bmap.c2764 args.fsbno = ap->rval; in xfs_bmap_btalloc()
2782 startag = ag = XFS_FSB_TO_AGNO(mp, args.fsbno); in xfs_bmap_btalloc()
2869 ap->rval = args.fsbno = XFS_AGB_TO_FSB(mp, ag, 0); in xfs_bmap_btalloc()
2951 if (tryagain && args.fsbno == NULLFSBLOCK) { in xfs_bmap_btalloc()
2957 args.fsbno = ap->rval; in xfs_bmap_btalloc()
2965 if (isaligned && args.fsbno == NULLFSBLOCK) { in xfs_bmap_btalloc()
2971 args.fsbno = ap->rval; in xfs_bmap_btalloc()
2976 if (args.fsbno == NULLFSBLOCK && nullfb && in xfs_bmap_btalloc()
2980 args.fsbno = ap->rval; in xfs_bmap_btalloc()
2984 if (args.fsbno == NULLFSBLOCK && nullfb) { in xfs_bmap_btalloc()
[all …]
Dxfs_btree.c466 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_get_bufl() argument
472 ASSERT(fsbno != NULLFSBLOCK); in xfs_btree_get_bufl()
473 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_get_bufl()
625 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_read_bufl() argument
634 ASSERT(fsbno != NULLFSBLOCK); in xfs_btree_read_bufl()
635 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_read_bufl()
696 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_reada_bufl() argument
701 ASSERT(fsbno != NULLFSBLOCK); in xfs_btree_reada_bufl()
702 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_reada_bufl()
Dxfs_rtalloc.c93 xfs_fsblock_t fsbno; /* filesystem block for bno */ in xfs_growfs_rt_alloc() local
150 for (bno = map.br_startoff, fsbno = map.br_startblock; in xfs_growfs_rt_alloc()
152 bno++, fsbno++) { in xfs_growfs_rt_alloc()
169 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_growfs_rt_alloc()