/fs/xfs/ |
D | xfs_ialloc_btree.c | 91 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()
|
D | xfs_sb.h | 509 #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
|
D | xfs_ag.h | 231 #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)))
|
D | xfs_bmap_btree.c | 535 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 …]
|
D | xfs_btree.h | 333 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 */
|
D | xfs_alloc.c | 2376 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 …]
|
D | xfs_ialloc.c | 209 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()
|
D | xfs_alloc.h | 76 xfs_fsblock_t fsbno; /* file system block number */ member
|
D | xfs_bmap.c | 2764 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 …]
|
D | xfs_btree.c | 466 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()
|
D | xfs_rtalloc.c | 93 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()
|