| /linux/fs/xfs/scrub/ |
| H A D | newbt.c | 203 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xrep_newbt_add_blocks() 240 .fsbno = xfs_agbno_to_fsb(pag, agbno), in xrep_newbt_add_extent() 298 if (args.fsbno == NULLFSBLOCK) in xrep_newbt_alloc_ag_blocks() 301 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_ag_blocks() 308 XFS_FSB_TO_AGBNO(mp, args.fsbno), args.len, in xrep_newbt_alloc_ag_blocks() 316 xnr->alloc_hint = args.fsbno + args.len; in xrep_newbt_alloc_ag_blocks() 373 if (args.fsbno == NULLFSBLOCK) in xrep_newbt_alloc_file_blocks() 376 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); in xrep_newbt_alloc_file_blocks() 385 XFS_FSB_TO_AGBNO(mp, args.fsbno), args.len, in xrep_newbt_alloc_file_blocks() 394 xnr->alloc_hint = args.fsbno + args.len; in xrep_newbt_alloc_file_blocks()
|
| 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 | 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 | attr_repair.c | 520 xfs_fsblock_t fsbno, in xrep_xattr_find_buf() argument 526 .daddr = XFS_FSB_TO_DADDR(mp, fsbno), in xrep_xattr_find_buf() 570 xfs_fsblock_t fsbno, in xrep_xattr_recover_block() argument 578 error = xrep_xattr_find_buf(rx->sc->mp, fsbno, max_len, true, &bp); in xrep_xattr_recover_block()
|
| H A D | rmap_repair.c | 386 xfs_fsblock_t fsbno; in xrep_rmap_visit_iroot_btree_block() local 393 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); in xrep_rmap_visit_iroot_btree_block() 394 if (XFS_FSB_TO_AGNO(cur->bc_mp, fsbno) != pag_agno(rf->rr->sc->sa.pag)) in xrep_rmap_visit_iroot_btree_block() 397 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 | 932 xfs_fsblock_t fsbno; in xrep_dinode_bad_bmbt_fork() local 940 fsbno = be64_to_cpu(*fpp); in xrep_dinode_bad_bmbt_fork() 941 if (!xfs_verify_fsbno(sc->mp, fsbno)) in xrep_dinode_bad_bmbt_fork()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_format.h | 472 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument 473 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno)) 483 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument 491 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) argument 704 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument 705 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog)) 706 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument 707 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
|
| H A D | xfs_types.h | 269 bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno); 270 bool xfs_verify_fsbext(struct xfs_mount *mp, xfs_fsblock_t fsbno,
|
| 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_alloc.h | 39 xfs_fsblock_t fsbno; /* file system block number */ member
|
| 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() 873 if (args.fsbno == NULLFSBLOCK) in xfs_ialloc_ag_alloc()
|
| H A D | xfs_ag.c | 829 err2 = xfs_free_extent_later(*tpp, args.fsbno, delta, NULL, in xfs_ag_shrink_space()
|
| /linux/fs/xfs/ |
| H A D | xfs_drain.h | 69 xfs_fsblock_t fsbno, enum xfs_group_type type);
|
| H A D | xfs_zone_alloc.c | 377 xfs_fsblock_t fsbno, in xfs_zone_free_blocks() argument 395 trace_xfs_zone_free_blocks(rtg, xfs_rtb_to_rgbno(mp, fsbno), len); in xfs_zone_free_blocks()
|
| H A D | xfs_inode.c | 1134 xfs_fsblock_t fsbno; in xfs_inactive_dir() local 1137 fsbno = (off - got.br_startoff) + got.br_startblock; in xfs_inactive_dir() 1139 XFS_FSB_TO_DADDR(mp, fsbno), in xfs_inactive_dir()
|