Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/xfs/scrub/
Drepair.c288 xfs_fsblock_t *fsbno, in xrep_alloc_ag_block() argument
305 *fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.agno, bno); in xrep_alloc_ag_block()
316 args.fsbno = XFS_AGB_TO_FSB(args.mp, sc->sa.agno, 0); in xrep_alloc_ag_block()
326 if (args.fsbno == NULLFSBLOCK) in xrep_alloc_ag_block()
329 *fsbno = args.fsbno; in xrep_alloc_ag_block()
444 xfs_fsblock_t fsbno; in xrep_invalidate_blocks() local
454 for_each_xbitmap_block(fsbno, bmr, n, bitmap) { in xrep_invalidate_blocks()
456 if (!xfs_verify_fsbno(sc->mp, fsbno)) in xrep_invalidate_blocks()
459 XFS_FSB_TO_DADDR(sc->mp, fsbno), in xrep_invalidate_blocks()
528 xfs_fsblock_t fsbno, in xrep_reap_block() argument
[all …]
Dtrace.h200 xfs_fsblock_t fsbno;
204 fsbno = XFS_DADDR_TO_FSB(sc->mp, daddr);
205 agno = XFS_FSB_TO_AGNO(sc->mp, fsbno);
206 bno = XFS_FSB_TO_AGBNO(sc->mp, fsbno);
337 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
343 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
344 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
379 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level);
387 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno);
388 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
[all …]
Drtbitmap.c169 xfs_rtblock_t fsbno, in xchk_xref_is_used_rt_space() argument
181 startext = fsbno; in xchk_xref_is_used_rt_space()
182 endext = fsbno + len - 1; in xchk_xref_is_used_rt_space()
Dbitmap.c281 xfs_fsblock_t fsbno; in xbitmap_collect_btblock() local
287 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, bp->b_bn); in xbitmap_collect_btblock()
288 return xbitmap_set(bitmap, fsbno, 1); in xbitmap_collect_btblock()
Drepair.h27 const struct xfs_owner_info *oinfo, xfs_fsblock_t *fsbno,
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_bmap_btree.c207 args.fsbno = cur->bc_tp->t_firstblock; in xfs_bmbt_alloc_block()
211 if (args.fsbno == NULLFSBLOCK) { in xfs_bmbt_alloc_block()
212 args.fsbno = be64_to_cpu(start->l); in xfs_bmbt_alloc_block()
242 if (args.fsbno == NULLFSBLOCK && args.minleft) { in xfs_bmbt_alloc_block()
248 args.fsbno = 0; in xfs_bmbt_alloc_block()
255 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmbt_alloc_block()
261 cur->bc_tp->t_firstblock = args.fsbno; in xfs_bmbt_alloc_block()
268 new->l = cpu_to_be64(args.fsbno); in xfs_bmbt_alloc_block()
285 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp)); in xfs_bmbt_free_block() local
289 xfs_bmap_add_free(cur->bc_tp, fsbno, 1, &oinfo); in xfs_bmbt_free_block()
Dxfs_types.c55 xfs_fsblock_t fsbno) in xfs_verify_fsbno() argument
57 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno()
61 return xfs_verify_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno()
Dxfs_refcount_btree.c68 args.fsbno = XFS_AGB_TO_FSB(cur->bc_mp, cur->bc_ag.agno, in xfs_refcountbt_alloc_block()
79 if (args.fsbno == NULLFSBLOCK) { in xfs_refcountbt_alloc_block()
105 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp)); in xfs_refcountbt_free_block() local
109 XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno), 1); in xfs_refcountbt_free_block()
112 error = xfs_free_extent(cur->bc_tp, fsbno, 1, &XFS_RMAP_OINFO_REFC, in xfs_refcountbt_free_block()
Dxfs_format.h605 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument
606 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
616 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument
624 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) argument
839 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument
840 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog))
841 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument
842 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
Dxfs_btree.h287 xfs_fsblock_t fsbno, /* btree block disk address */
336 xfs_fsblock_t fsbno, /* file system block number */
348 xfs_fsblock_t fsbno, /* file system block number */
Dxfs_alloc.c3066 ASSERT(XFS_FSB_TO_AGNO(mp, args->fsbno) < mp->m_sb.sb_agcount); in xfs_alloc_vextent()
3067 ASSERT(XFS_FSB_TO_AGBNO(mp, args->fsbno) < agsize); in xfs_alloc_vextent()
3071 if (XFS_FSB_TO_AGNO(mp, args->fsbno) >= mp->m_sb.sb_agcount || in xfs_alloc_vextent()
3072 XFS_FSB_TO_AGBNO(mp, args->fsbno) >= agsize || in xfs_alloc_vextent()
3075 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent()
3087 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
3098 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xfs_alloc_vextent()
3109 args->fsbno = XFS_AGB_TO_FSB(mp, in xfs_alloc_vextent()
3114 args->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xfs_alloc_vextent()
3125 args->agno = XFS_FSB_TO_AGNO(mp, args->fsbno); in xfs_alloc_vextent()
[all …]
Dxfs_bmap.c702 args.fsbno = XFS_INO_TO_FSB(mp, ip->i_ino); in xfs_bmap_extents_to_btree()
705 args.fsbno = tp->t_firstblock; in xfs_bmap_extents_to_btree()
708 args.fsbno = tp->t_firstblock; in xfs_bmap_extents_to_btree()
717 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmap_extents_to_btree()
727 tp->t_firstblock = args.fsbno; in xfs_bmap_extents_to_btree()
732 XFS_FSB_TO_DADDR(mp, args.fsbno), in xfs_bmap_extents_to_btree()
764 *pp = cpu_to_be64(args.fsbno); in xfs_bmap_extents_to_btree()
863 args.fsbno = XFS_INO_TO_FSB(args.mp, ip->i_ino); in xfs_bmap_local_to_extents()
866 args.fsbno = tp->t_firstblock; in xfs_bmap_local_to_extents()
876 ASSERT(args.fsbno != NULLFSBLOCK); in xfs_bmap_local_to_extents()
[all …]
Dxfs_types.h187 bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno);
Dxfs_ialloc_btree.c105 args.fsbno = XFS_AGB_TO_FSB(args.mp, cur->bc_ag.agno, sbno); in __xfs_inobt_alloc_block()
116 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_ialloc.c636 args.fsbno = NULLFSBLOCK; in xfs_ialloc_ag_alloc()
670 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
708 if (unlikely(args.fsbno == NULLFSBLOCK)) { in xfs_ialloc_ag_alloc()
730 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
748 if (isaligned && args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
751 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
763 args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
767 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
798 if (args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc()
Dxfs_alloc.h57 xfs_fsblock_t fsbno; /* file system block number */ member
Dxfs_refcount.c924 xfs_fsblock_t fsbno; in xfs_refcount_adjust_extents() local
973 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
976 xfs_bmap_add_free(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1018 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
1021 xfs_bmap_add_free(cur->bc_tp, fsbno, ext.rc_blockcount, in xfs_refcount_adjust_extents()
Dxfs_btree.c201 xfs_fsblock_t fsbno, in xfs_btree_check_lptr() argument
206 return xfs_verify_fsbno(cur->bc_mp, fsbno); in xfs_btree_check_lptr()
795 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_read_bufl() argument
804 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_btree_read_bufl()
806 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_read_bufl()
825 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_reada_bufl() argument
831 ASSERT(fsbno != NULLFSBLOCK); in xfs_btree_reada_bufl()
832 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_reada_bufl()
945 xfs_fsblock_t fsbno; in xfs_btree_ptr_to_daddr() local
954 fsbno = be64_to_cpu(ptr->l); in xfs_btree_ptr_to_daddr()
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_rtalloc.c777 xfs_fsblock_t fsbno; /* filesystem block for bno */ in xfs_growfs_rt_alloc() local
827 for (bno = map.br_startoff, fsbno = map.br_startblock; in xfs_growfs_rt_alloc()
829 bno++, fsbno++) { in xfs_growfs_rt_alloc()
845 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_growfs_rt_alloc()