/linux/fs/xfs/scrub/ |
H A D | newbt.c | 194 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xrep_newbt_add_blocks() 231 .fsbno = xfs_agbno_to_fsb(pag, agbno), in xrep_newbt_add_extent() 289 if (args.fsbno == NULLFSBLOCK) in xrep_newbt_alloc_ag_blocks() 292 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_ag_blocks() 299 XFS_FSB_TO_AGBNO(mp, args.fsbno), args.len, in xrep_newbt_alloc_ag_blocks() 307 xnr->alloc_hint = args.fsbno + args.len; in xrep_newbt_alloc_ag_blocks() 364 if (args.fsbno == NULLFSBLOCK) in xrep_newbt_alloc_file_blocks() 367 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_file_blocks() 376 XFS_FSB_TO_AGBNO(mp, args.fsbno), args.len, in xrep_newbt_alloc_file_blocks() 385 xnr->alloc_hint = args.fsbno + args.len; in xrep_newbt_alloc_file_blocks()
|
H A D | agb_bitmap.c | 60 xfs_fsblock_t fsbno; in xagb_bitmap_visit_btblock() local 67 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in xagb_bitmap_visit_btblock() 68 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); in xagb_bitmap_visit_btblock()
|
H A D | cow_repair.c | 85 xfs_fsblock_t fsbno; member 433 if (args.fsbno == NULLFSBLOCK) in xrep_cow_alloc() 436 xfs_refcount_alloc_cow_extent(sc->tp, false, args.fsbno, args.len); in xrep_cow_alloc() 438 repl->fsbno = args.fsbno; in xrep_cow_alloc() 461 false, &repl->fsbno, &repl->len); in xrep_cow_alloc_rt() 465 xfs_refcount_alloc_cow_extent(sc->tp, true, repl->fsbno, repl->len); in xrep_cow_alloc_rt() 525 trace_xrep_cow_replace_mapping(ip, got, repl->fsbno, repl->len); in xrep_cow_replace_mapping() 532 new.br_startblock = repl->fsbno; in xrep_cow_replace_mapping() 547 new.br_startblock = repl->fsbno; in xrep_cow_replace_mapping()
|
H A D | reap.c | 395 xfs_fsblock_t fsbno; in xreap_agextent_iter() local 400 fsbno = xfs_agbno_to_fsb(sc->sa.pag, agbno); in xreap_agextent_iter() 427 xfs_refcount_free_cow_extent(sc->tp, false, fsbno, in xreap_agextent_iter() 460 xfs_refcount_free_cow_extent(sc->tp, false, fsbno, *aglenp); in xreap_agextent_iter() 461 error = xfs_free_extent_later(sc->tp, fsbno, *aglenp, NULL, in xreap_agextent_iter() 487 error = xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo, in xreap_agextent_iter() 582 uint64_t fsbno, in xreap_fsmeta_extent() argument 588 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, fsbno); in xreap_fsmeta_extent() 589 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); in xreap_fsmeta_extent()
|
H A D | quota_repair.c | 405 xfs_fsblock_t fsbno; in xrep_quota_data_fork() local 482 for (fsbno = irec.br_startblock, off = irec.br_startoff; in xrep_quota_data_fork() 483 fsbno < irec.br_startblock + irec.br_blockcount; in xrep_quota_data_fork() 484 fsbno += XFS_DQUOT_CLUSTER_SIZE_FSB, in xrep_quota_data_fork() 487 XFS_FSB_TO_DADDR(sc->mp, fsbno), in xrep_quota_data_fork()
|
H A D | bmap_repair.c | 249 xfs_fsblock_t fsbno; in xrep_bmap_walk_rmap() local 280 fsbno = xfs_agbno_to_fsb(to_perag(cur->bc_group), rec->rm_startblock); in xrep_bmap_walk_rmap() 284 return xfsb_bitmap_set(&rb->old_bmbt_blocks, fsbno, in xrep_bmap_walk_rmap() 288 return xrep_bmap_from_rmap(rb, rec->rm_offset, fsbno, in xrep_bmap_walk_rmap()
|
H A D | rmap_repair.c | 389 xfs_fsblock_t fsbno; in xrep_rmap_visit_iroot_btree_block() local 396 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in xrep_rmap_visit_iroot_btree_block() 397 if (XFS_FSB_TO_AGNO(cur->bc_mp, fsbno) != pag_agno(rf->rr->sc->sa.pag)) in xrep_rmap_visit_iroot_btree_block() 400 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); in xrep_rmap_visit_iroot_btree_block()
|
H A D | trace.h | 572 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 578 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 579 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 614 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 622 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 623 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 656 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 661 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 662 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 694 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); [all …]
|
H A D | inode_repair.c | 930 xfs_fsblock_t fsbno; in xrep_dinode_bad_bmbt_fork() local 938 fsbno = be64_to_cpu(*fpp); in xrep_dinode_bad_bmbt_fork() 939 if (!xfs_verify_fsbno(sc->mp, fsbno)) in xrep_dinode_bad_bmbt_fork()
|
/linux/fs/xfs/ |
H A D | xfs_drain.c | 106 xfs_fsblock_t fsbno, in xfs_group_intent_get() argument 111 xg = xfs_group_get_by_fsb(mp, fsbno, type); in xfs_group_intent_get()
|
H A D | xfs_drain.h | 69 xfs_fsblock_t fsbno, enum xfs_group_type type);
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_format.h | 465 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument 466 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno)) 476 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument 484 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) argument 697 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument 698 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog)) 699 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument 700 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
|
H A D | xfs_types.h | 241 bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno); 242 bool xfs_verify_fsbext(struct xfs_mount *mp, xfs_fsblock_t fsbno,
|
H A D | xfs_ialloc_btree.c | 127 if (args.fsbno == NULLFSBLOCK) { in __xfs_inobt_alloc_block() 133 new->s = cpu_to_be32(XFS_FSB_TO_AGBNO(args.mp, args.fsbno)); in __xfs_inobt_alloc_block() 168 xfs_fsblock_t fsbno; in __xfs_inobt_free_block() local 171 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in __xfs_inobt_free_block() 172 return xfs_free_extent_later(cur->bc_tp, fsbno, 1, in __xfs_inobt_free_block()
|
H A D | xfs_bmap_btree.c | 241 if (args.fsbno == NULLFSBLOCK && args.minleft) { in xfs_bmbt_alloc_block() 253 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmbt_alloc_block() 265 new->l = cpu_to_be64(args.fsbno); in xfs_bmbt_alloc_block() 279 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); in xfs_bmbt_free_block() local 284 error = xfs_free_extent_later(cur->bc_tp, fsbno, 1, &oinfo, in xfs_bmbt_free_block()
|
H A D | xfs_refcount_btree.c | 80 if (args.fsbno == NULLFSBLOCK) { in xfs_refcountbt_alloc_block() 106 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); in xfs_refcountbt_free_block() local 110 return xfs_free_extent_later(cur->bc_tp, fsbno, 1, in xfs_refcountbt_free_block()
|
H A D | xfs_rmap.h | 189 void xfs_rmap_alloc_extent(struct xfs_trans *tp, bool isrt, xfs_fsblock_t fsbno, 191 void xfs_rmap_free_extent(struct xfs_trans *tp, bool isrt, xfs_fsblock_t fsbno,
|
H A D | xfs_bmap.c | 237 xfs_fsblock_t fsbno, /* file system block number */ in xfs_bmap_read_buf() argument 243 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_bmap_read_buf() 246 XFS_FSB_TO_DADDR(mp, fsbno), mp->m_bsize, 0, &bp, in xfs_bmap_read_buf() 694 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmap_extents_to_btree() 703 XFS_FSB_TO_DADDR(mp, args.fsbno), in xfs_bmap_extents_to_btree() 732 *pp = cpu_to_be64(args.fsbno); in xfs_bmap_extents_to_btree() 839 ASSERT(args.fsbno != NULLFSBLOCK); in xfs_bmap_local_to_extents() 842 XFS_FSB_TO_DADDR(args.mp, args.fsbno), in xfs_bmap_local_to_extents() 866 rec.br_startblock = args.fsbno; in xfs_bmap_local_to_extents() 3491 ap->blkno = args->fsbno; in xfs_bmap_process_allocated_extent() [all …]
|
H A D | xfs_alloc.h | 39 xfs_fsblock_t fsbno; /* file system block number */ member
|
H A D | xfs_rtbitmap.c | 1358 xfs_fsblock_t fsbno, in xfs_rtfile_initialize_block() argument 1384 XFS_FSB_TO_DADDR(mp, fsbno), mp->m_bsize, 0, &bp); in xfs_rtfile_initialize_block() 1402 hdr->rt_blkno = cpu_to_be64(XFS_FSB_TO_DADDR(mp, fsbno)); in xfs_rtfile_initialize_block()
|
H A D | xfs_ialloc.c | 715 args.fsbno = NULLFSBLOCK; in xfs_ialloc_ag_alloc() 787 if (unlikely(args.fsbno == NULLFSBLOCK)) { in xfs_ialloc_ag_alloc() 822 if (isaligned && args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc() 837 args.fsbno == NULLFSBLOCK) { in xfs_ialloc_ag_alloc() 872 if (args.fsbno == NULLFSBLOCK) in xfs_ialloc_ag_alloc()
|
H A D | xfs_alloc.c | 2729 error = xfs_defer_extent_free(args->tp, args->fsbno, args->len, in xfs_alloc_schedule_autoreap() 3480 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent_check_args() 3606 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent_finish() 3611 args->fsbno = xfs_agbno_to_fsb(args->pag, args->agbno); in xfs_alloc_vextent_finish() 3616 XFS_AG_CHECK_DADDR(mp, XFS_FSB_TO_DADDR(mp, args->fsbno), args->len); in xfs_alloc_vextent_finish()
|
H A D | xfs_rmap.c | 2837 xfs_fsblock_t fsbno, in xfs_rmap_alloc_extent() argument 2846 bmap.br_startblock = fsbno; in xfs_rmap_alloc_extent() 2859 xfs_fsblock_t fsbno, in xfs_rmap_free_extent() argument 2868 bmap.br_startblock = fsbno; in xfs_rmap_free_extent()
|
H A D | xfs_ag.c | 838 err2 = xfs_free_extent_later(*tpp, args.fsbno, delta, NULL, in xfs_ag_shrink_space()
|
H A D | xfs_btree.c | 5615 if (args.fsbno == NULLFSBLOCK) { in xfs_btree_alloc_metafile_block() 5623 new->l = cpu_to_be64(args.fsbno); in xfs_btree_alloc_metafile_block() 5638 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); in xfs_btree_free_metafile_block() local 5644 error = xfs_free_extent_later(tp, fsbno, 1, &oinfo, XFS_AG_RESV_METAFILE, in xfs_btree_free_metafile_block()
|