Home
last modified time | relevance | path

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

12

/linux/fs/xfs/scrub/
H A Dnewbt.c203 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 Dagb_bitmap.c60 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 Dcow_repair.c85 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 Dreap.c416 xfs_fsblock_t fsbno; in xreap_agextent_iter() local
421 fsbno = xfs_agbno_to_fsb(sc->sa.pag, agbno); in xreap_agextent_iter()
446 xfs_refcount_free_cow_extent(sc->tp, false, fsbno, in xreap_agextent_iter()
453 xfs_rmap_free_extent(sc->tp, false, fsbno, *aglenp, in xreap_agextent_iter()
483 xfs_refcount_free_cow_extent(sc->tp, false, fsbno, *aglenp); in xreap_agextent_iter()
484 error = xfs_free_extent_later(sc->tp, fsbno, *aglenp, NULL, in xreap_agextent_iter()
510 error = xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo, in xreap_agextent_iter()
788 uint64_t fsbno, in xreap_fsmeta_extent() argument
794 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, fsbno); in xreap_fsmeta_extent()
795 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); in xreap_fsmeta_extent()
H A Dbmap_repair.c249 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 Drmap_repair.c389 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 Dtrace.h572 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 Dinode_repair.c932 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/
H A Dxfs_drain.c106 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 Dxfs_drain.h69 xfs_fsblock_t fsbno, enum xfs_group_type type);
H A Dxfs_zone_alloc.h35 xfs_fsblock_t fsbno, xfs_filblks_t len);
H A Dxfs_zone_alloc.c196 xfs_fsblock_t fsbno, in xfs_zone_record_blocks() argument
203 trace_xfs_zone_record_blocks(oz, xfs_rtb_to_rgbno(mp, fsbno), len); in xfs_zone_record_blocks()
378 xfs_fsblock_t fsbno, in xfs_zone_free_blocks() argument
396 trace_xfs_zone_free_blocks(rtg, xfs_rtb_to_rgbno(mp, fsbno), len); in xfs_zone_free_blocks()
/linux/fs/xfs/libxfs/
H A Dxfs_format.h472 #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 Dxfs_types.h269 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 Dxfs_group.c226 xfs_fsblock_t fsbno, in xfs_group_get_by_fsb() argument
229 return xfs_group_get(mp, xfs_fsb_to_gno(mp, fsbno, type), type); in xfs_group_get_by_fsb()
H A Dxfs_bmap_btree.c241 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 Dxfs_ialloc_btree.c127 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 Dxfs_refcount_btree.c80 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 Dxfs_rmap.h189 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 Dxfs_bmap.c235 xfs_fsblock_t fsbno, /* file system block number */ in xfs_bmap_read_buf() argument
241 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_bmap_read_buf()
244 XFS_FSB_TO_DADDR(mp, fsbno), mp->m_bsize, 0, &bp, in xfs_bmap_read_buf()
692 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { in xfs_bmap_extents_to_btree()
701 XFS_FSB_TO_DADDR(mp, args.fsbno), in xfs_bmap_extents_to_btree()
730 *pp = cpu_to_be64(args.fsbno); in xfs_bmap_extents_to_btree()
837 ASSERT(args.fsbno != NULLFSBLOCK); in xfs_bmap_local_to_extents()
840 XFS_FSB_TO_DADDR(args.mp, args.fsbno), in xfs_bmap_local_to_extents()
864 rec.br_startblock = args.fsbno; in xfs_bmap_local_to_extents()
3346 ap->blkno = args->fsbno; in xfs_bmap_process_allocated_extent()
[all …]
H A Dxfs_alloc.h39 xfs_fsblock_t fsbno; /* file system block number */ member
H A Dxfs_rtbitmap.c1369 xfs_fsblock_t fsbno, in xfs_rtfile_initialize_block() argument
1395 XFS_FSB_TO_DADDR(mp, fsbno), mp->m_bsize, 0, &bp); in xfs_rtfile_initialize_block()
1413 hdr->rt_blkno = cpu_to_be64(XFS_FSB_TO_DADDR(mp, fsbno)); in xfs_rtfile_initialize_block()
H A Dxfs_ialloc.c715 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 Dxfs_alloc.c2727 error = xfs_defer_extent_free(args->tp, args->fsbno, args->len, in xfs_alloc_schedule_autoreap()
3503 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent_check_args()
3629 args->fsbno = NULLFSBLOCK; in xfs_alloc_vextent_finish()
3634 args->fsbno = xfs_agbno_to_fsb(args->pag, args->agbno); in xfs_alloc_vextent_finish()
3639 XFS_AG_CHECK_DADDR(mp, XFS_FSB_TO_DADDR(mp, args->fsbno), args->len); in xfs_alloc_vextent_finish()
H A Dxfs_rmap.c2837 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()

12