| /fs/xfs/libxfs/ |
| A D | xfs_types.c | 46 xfs_fsblock_t fsbno) in xfs_verify_fsbno() argument 48 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); in xfs_verify_fsbno() 52 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); in xfs_verify_fsbno() 62 xfs_fsblock_t fsbno, in xfs_verify_fsbext() argument 65 if (fsbno + len <= fsbno) in xfs_verify_fsbext() 68 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_verify_fsbext() 71 if (!xfs_verify_fsbno(mp, fsbno + len - 1)) in xfs_verify_fsbext() 74 return XFS_FSB_TO_AGNO(mp, fsbno) == in xfs_verify_fsbext() 75 XFS_FSB_TO_AGNO(mp, fsbno + len - 1); in xfs_verify_fsbext()
|
| A D | xfs_group.h | 67 xfs_fsblock_t fsbno, enum xfs_group_type type); 124 xfs_fsblock_t fsbno; in xfs_gbno_to_daddr() local 127 fsbno = xfs_gbno_to_fsb(xg, gbno); in xfs_gbno_to_daddr() 129 fsbno = (xfs_fsblock_t)xg->xg_gno * g->blocks + gbno; in xfs_gbno_to_daddr() 131 return XFS_FSB_TO_BB(mp, g->start_fsb + fsbno); in xfs_gbno_to_daddr() 137 xfs_fsblock_t fsbno, in xfs_fsb_to_gno() argument 142 return fsbno >> mp->m_groups[type].blklog; in xfs_fsb_to_gno() 148 xfs_fsblock_t fsbno, in xfs_fsb_to_gbno() argument 151 return fsbno & mp->m_groups[type].blkmask; in xfs_fsb_to_gbno()
|
| 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)))
|
| 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,
|
| 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()
|
| 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()
|
| A D | xfs_group.c | 226 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()
|
| 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()
|
| 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,
|
| A D | xfs_bmap.c | 241 if (!xfs_verify_fsbno(mp, fsbno)) in xfs_bmap_read_buf() 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() 864 rec.br_startblock = args.fsbno; in xfs_bmap_local_to_extents() 3354 ap->blkno = args->fsbno; in xfs_bmap_process_allocated_extent() 3381 args->fsbno = NULLFSBLOCK; in xfs_bmap_exact_minlen_extent_alloc() 3463 if (args->fsbno != NULLFSBLOCK) in xfs_bmap_btalloc_at_eof() 3495 if (args->fsbno != NULLFSBLOCK) in xfs_bmap_btalloc_at_eof() 3642 .fsbno = NULLFSBLOCK, in xfs_bmap_btalloc() [all …]
|
| A D | xfs_alloc.h | 39 xfs_fsblock_t fsbno; /* file system block number */ member
|
| A D | xfs_rtbitmap.c | 1369 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()
|
| /fs/xfs/scrub/ |
| 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()
|
| 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()
|
| 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()
|
| 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()
|
| 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()
|
| 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()
|
| 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()
|
| 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()
|
| 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); 622 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 623 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 661 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 662 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 701 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 702 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 739 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); [all …]
|
| /fs/xfs/ |
| 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()
|
| A D | xfs_drain.h | 69 xfs_fsblock_t fsbno, enum xfs_group_type type);
|
| A D | xfs_zone_alloc.h | 35 xfs_fsblock_t fsbno, xfs_filblks_t len);
|
| A D | xfs_zone_alloc.c | 170 xfs_fsblock_t fsbno, in xfs_zone_record_blocks() argument 177 trace_xfs_zone_record_blocks(oz, xfs_rtb_to_rgbno(mp, fsbno), len); in xfs_zone_record_blocks() 344 xfs_fsblock_t fsbno, in xfs_zone_free_blocks() argument 362 trace_xfs_zone_free_blocks(rtg, xfs_rtb_to_rgbno(mp, fsbno), len); in xfs_zone_free_blocks()
|