/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_types.c | 44 xfs_fsblock_t fsbno) in xfs_verify_fsbno() argument 46 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() 50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno() 60 xfs_fsblock_t fsbno, in xfs_verify_fsbext() argument 63 if (fsbno + len <= fsbno) in xfs_verify_fsbext() 66 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_verify_fsbext() 69 if (!xfs_verify_fsbno(mp, fsbno + len - 1)) in xfs_verify_fsbext() 72 return XFS_FSB_TO_AGNO(mp, fsbno) == in xfs_verify_fsbext() 73 XFS_FSB_TO_AGNO(mp, fsbno + len - 1); in xfs_verify_fsbext()
|
H A D | xfs_format.h | 440 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument 441 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno)) 451 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument 459 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) argument 673 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument 674 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog)) 675 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument 676 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
|
H A D | xfs_types.h | 225 bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno); 226 bool xfs_verify_fsbext(struct xfs_mount *mp, xfs_fsblock_t fsbno,
|
H A D | xfs_bmap_btree.c | 231 if (args.fsbno == NULLFSBLOCK && args.minleft) { in xfs_bmbt_alloc_block() 243 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmbt_alloc_block() 255 new->l = cpu_to_be64(args.fsbno); in xfs_bmbt_alloc_block() 269 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); in xfs_bmbt_free_block() local 274 error = xfs_free_extent_later(cur->bc_tp, fsbno, 1, &oinfo, in xfs_bmbt_free_block()
|
H A D | xfs_refcount_btree.c | 82 if (args.fsbno == NULLFSBLOCK) { in xfs_refcountbt_alloc_block() 108 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); in xfs_refcountbt_free_block() local 111 XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno), 1); in xfs_refcountbt_free_block() 114 return xfs_free_extent_later(cur->bc_tp, fsbno, 1, in xfs_refcountbt_free_block()
|
H A D | xfs_ialloc_btree.c | 118 if (args.fsbno == NULLFSBLOCK) { in __xfs_inobt_alloc_block() 124 new->s = cpu_to_be32(XFS_FSB_TO_AGBNO(args.mp, args.fsbno)); in __xfs_inobt_alloc_block() 159 xfs_fsblock_t fsbno; in __xfs_inobt_free_block() local 162 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in __xfs_inobt_free_block() 163 return xfs_free_extent_later(cur->bc_tp, fsbno, 1, in __xfs_inobt_free_block()
|
H A D | xfs_btree.h | 353 xfs_fsblock_t fsbno, /* btree block disk address */ 402 xfs_fsblock_t fsbno, /* file system block number */ 414 xfs_fsblock_t fsbno, /* file system block number */
|
H A D | xfs_bmap.c | 665 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmap_extents_to_btree() 674 XFS_FSB_TO_DADDR(mp, args.fsbno), in xfs_bmap_extents_to_btree() 706 *pp = cpu_to_be64(args.fsbno); in xfs_bmap_extents_to_btree() 812 ASSERT(args.fsbno != NULLFSBLOCK); in xfs_bmap_local_to_extents() 815 XFS_FSB_TO_DADDR(args.mp, args.fsbno), in xfs_bmap_local_to_extents() 839 rec.br_startblock = args.fsbno; in xfs_bmap_local_to_extents() 3370 ap->blkno = args->fsbno; in xfs_bmap_process_allocated_extent() 3397 args->fsbno = NULLFSBLOCK; in xfs_bmap_exact_minlen_extent_alloc() 3479 if (args->fsbno != NULLFSBLOCK) in xfs_bmap_btalloc_at_eof() 3511 if (args->fsbno != NULLFSBLOCK) in xfs_bmap_btalloc_at_eof() [all …]
|
H A D | xfs_refcount.c | 1098 xfs_fsblock_t fsbno; in xfs_refcount_adjust_extents() local 1151 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents() 1154 error = xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents() 1213 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents() 1216 error = xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
|
H A D | xfs_alloc.h | 39 xfs_fsblock_t fsbno; /* file system block number */ member
|
H A D | xfs_btree.c | 271 xfs_fsblock_t fsbno, in xfs_btree_check_lptr() argument 276 return xfs_verify_fsbno(cur->bc_mp, fsbno); in xfs_btree_check_lptr() 867 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_read_bufl() argument 876 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_btree_read_bufl() 878 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_read_bufl() 897 xfs_fsblock_t fsbno, /* file system block number */ in xfs_btree_reada_bufl() argument 903 ASSERT(fsbno != NULLFSBLOCK); in xfs_btree_reada_bufl() 904 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_btree_reada_bufl() 1017 xfs_fsblock_t fsbno; in xfs_btree_ptr_to_daddr() local 1026 fsbno = be64_to_cpu(ptr->l); in xfs_btree_ptr_to_daddr() [all …]
|
H A D | xfs_alloc.c | 2499 xfs_fsblock_t fsbno = XFS_AGB_TO_FSB(mp, agno, agbno); in xfs_defer_agfl_block() local 2504 if (XFS_IS_CORRUPT(mp, !xfs_verify_fsbno(mp, fsbno))) in xfs_defer_agfl_block() 2509 xefi->xefi_startblock = fsbno; in xfs_defer_agfl_block() 3276 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent_check_args() 3402 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent_finish() 3407 args->fsbno = XFS_AGB_TO_FSB(mp, args->agno, args->agbno); in xfs_alloc_vextent_finish() 3412 XFS_AG_CHECK_DADDR(mp, XFS_FSB_TO_DADDR(mp, args->fsbno), args->len); in xfs_alloc_vextent_finish()
|
H A D | xfs_ialloc.c | 657 args.fsbno = NULLFSBLOCK; in xfs_ialloc_ag_alloc() 730 if (unlikely(args.fsbno == NULLFSBLOCK)) { in xfs_ialloc_ag_alloc() 765 if (isaligned && args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc() 780 args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc() 814 if (args.fsbno == NULLFSBLOCK) in xfs_ialloc_ag_alloc()
|
H A D | xfs_ag.c | 1017 err2 = __xfs_free_extent_later(*tpp, args.fsbno, delta, NULL, in xfs_ag_shrink_space()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_notify_failure.c | 115 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, daddr); in xfs_dax_notify_ddev_failure() local 116 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_dax_notify_ddev_failure() 146 ri_low.rm_startblock = XFS_FSB_TO_AGBNO(mp, fsbno); in xfs_dax_notify_ddev_failure() 164 fsbno = XFS_AGB_TO_FSB(mp, agno + 1, 0); in xfs_dax_notify_ddev_failure()
|
H A D | xfs_rtalloc.c | 799 xfs_fsblock_t fsbno; /* filesystem block for bno */ in xfs_growfs_rt_alloc() local 855 for (bno = map.br_startoff, fsbno = map.br_startblock; in xfs_growfs_rt_alloc() 857 bno++, fsbno++) { in xfs_growfs_rt_alloc() 873 d = XFS_FSB_TO_DADDR(mp, fsbno); in xfs_growfs_rt_alloc()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | reap.c | 358 xfs_fsblock_t fsbno; in xreap_agextent_iter() local 361 fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, agbno); in xreap_agextent_iter() 413 error = __xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo, in xreap_agextent_iter() 428 uint64_t fsbno, in xreap_agmeta_extent() argument 434 xfs_agblock_t agbno = fsbno; in xreap_agmeta_extent()
|
H A D | rtbitmap.c | 132 xfs_rtblock_t fsbno, in xchk_xref_is_used_rt_space() argument 144 startext = fsbno; in xchk_xref_is_used_rt_space() 145 endext = fsbno + len - 1; in xchk_xref_is_used_rt_space()
|
H A D | trace.h | 385 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 391 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 392 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 427 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 435 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 436 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 469 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 474 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 475 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 507 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); [all …]
|
H A D | bitmap.c | 275 xfs_fsblock_t fsbno; in xagb_bitmap_visit_btblock() local 282 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in xagb_bitmap_visit_btblock() 283 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); in xagb_bitmap_visit_btblock()
|