Home
last modified time | relevance | path

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

/fs/xfs/libxfs/
Dxfs_bmap_btree.c417 args.fsbno = cur->bc_private.b.firstblock; in xfs_bmbt_alloc_block()
418 args.firstblock = args.fsbno; in xfs_bmbt_alloc_block()
422 if (args.fsbno == NULLFSBLOCK) { in xfs_bmbt_alloc_block()
423 args.fsbno = be64_to_cpu(start->l); in xfs_bmbt_alloc_block()
453 if (args.fsbno == NULLFSBLOCK && args.minleft) { in xfs_bmbt_alloc_block()
459 args.fsbno = 0; in xfs_bmbt_alloc_block()
466 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmbt_alloc_block()
472 cur->bc_private.b.firstblock = args.fsbno; in xfs_bmbt_alloc_block()
479 new->l = cpu_to_be64(args.fsbno); in xfs_bmbt_alloc_block()
498 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp)); in xfs_bmbt_free_block() local
[all …]
Dxfs_refcount_btree.c88 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_private.a.agno, in xfs_refcountbt_alloc_block()
90 args.firstblock = args.fsbno; in xfs_refcountbt_alloc_block()
100 if (args.fsbno == NULLFSBLOCK) { in xfs_refcountbt_alloc_block()
129 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp)); in xfs_refcountbt_free_block() local
134 XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno), 1); in xfs_refcountbt_free_block()
138 error = xfs_free_extent(cur->bc_tp, fsbno, 1, &oinfo, in xfs_refcountbt_free_block()
Dxfs_format.h576 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument
577 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
587 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument
595 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) argument
814 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument
815 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog))
816 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument
817 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
Dxfs_alloc.c2734 ASSERT(XFS_FSB_TO_AGNO(mp, args->fsbno) < mp->m_sb.sb_agcount); in xfs_alloc_vextent()
2735 ASSERT(XFS_FSB_TO_AGBNO(mp, args->fsbno) < agsize); in xfs_alloc_vextent()
2739 if (XFS_FSB_TO_AGNO(mp, args->fsbno) >= mp->m_sb.sb_agcount || in xfs_alloc_vextent()
2740 XFS_FSB_TO_AGBNO(mp, args->fsbno) >= agsize || in xfs_alloc_vextent()
2743 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent()
2755 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
2766 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xfs_alloc_vextent()
2777 args->fsbno = XFS_AGB_TO_FSB(mp, in xfs_alloc_vextent()
2782 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xfs_alloc_vextent()
2793 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
[all …]
Dxfs_btree.h303 xfs_fsblock_t fsbno, /* file system block number */
346 xfs_fsblock_t fsbno, /* file system block number */
359 xfs_fsblock_t fsbno, /* file system block number */
Dxfs_ialloc_btree.c102 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_private.a.agno, sbno); in __xfs_inobt_alloc_block()
114 if (args.fsbno == NULLFSBLOCK) { in __xfs_inobt_alloc_block()
122 new->s = cpu_to_be32(XFS_FSB_TO_AGBNO(args.mp, args.fsbno)); in __xfs_inobt_alloc_block()
Dxfs_bmap.c751 args.fsbno = XFS_INO_TO_FSB(mp, ip->i_ino); in xfs_bmap_extents_to_btree()
754 args.fsbno = *firstblock; in xfs_bmap_extents_to_btree()
757 args.fsbno = *firstblock; in xfs_bmap_extents_to_btree()
768 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmap_extents_to_btree()
778 *firstblock = cur->bc_private.b.firstblock = args.fsbno; in xfs_bmap_extents_to_btree()
782 abp = xfs_btree_get_bufl(mp, tp, args.fsbno, 0); in xfs_bmap_extents_to_btree()
813 *pp = cpu_to_be64(args.fsbno); in xfs_bmap_extents_to_btree()
900 args.fsbno = XFS_INO_TO_FSB(args.mp, ip->i_ino); in xfs_bmap_local_to_extents()
903 args.fsbno = *firstblock; in xfs_bmap_local_to_extents()
913 ASSERT(args.fsbno != NULLFSBLOCK); in xfs_bmap_local_to_extents()
[all …]
Dxfs_ialloc.c625 args.fsbno = NULLFSBLOCK; in xfs_ialloc_ag_alloc()
659 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
697 if (unlikely(args.fsbno == NULLFSBLOCK)) { in xfs_ialloc_ag_alloc()
719 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
737 if (isaligned && args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
740 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
752 args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
756 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
787 if (args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
Dxfs_refcount.c837 xfs_fsblock_t fsbno; in xfs_refcount_adjust_extents() local
883 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
886 xfs_bmap_add_free(cur->bc_mp, dfops, fsbno, in xfs_refcount_adjust_extents()
926 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
929 xfs_bmap_add_free(cur->bc_mp, dfops, fsbno, in xfs_refcount_adjust_extents()
Dxfs_alloc.h70 xfs_fsblock_t fsbno; /* file system block number */ member
Dxfs_btree.c666 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_get_bufl() argument
671 ASSERT(fsbno != NULLFSBLOCK); in xfs_btree_get_bufl()
672 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_get_bufl()
819 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_read_bufl() argument
829 if (!XFS_FSB_SANITY_CHECK(mp, fsbno)) in xfs_btree_read_bufl()
831 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_read_bufl()
850 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_reada_bufl() argument
856 ASSERT(fsbno != NULLFSBLOCK); in xfs_btree_reada_bufl()
857 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_reada_bufl()
/fs/xfs/
Dxfs_rtalloc.c774 xfs_fsblock_t fsbno; /* filesystem block for bno */ in xfs_growfs_rt_alloc() local
823 for (bno = map.br_startoff, fsbno = map.br_startblock; in xfs_growfs_rt_alloc()
825 bno++, fsbno++) { in xfs_growfs_rt_alloc()
841 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_growfs_rt_alloc()