/linux-master/fs/xfs/scrub/ |
H A D | agb_bitmap.c | 60 xfs_fsblock_t fsbno; local 67 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); 68 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno);
|
H A D | cow_repair.c | 78 xfs_fsblock_t fsbno; member in struct:xrep_cow_extent 140 xfs_fsblock_t fsbno; local 148 fsbno = XFS_AGB_TO_FSB(xc->sc->mp, cur->bc_ag.pag->pag_agno, 150 return xrep_cow_mark_file_range(xc, fsbno, rrec.rc_blockcount); 203 xfs_fsblock_t fsbno; local 225 fsbno = XFS_AGB_TO_FSB(xc->sc->mp, cur->bc_ag.pag->pag_agno, rec_bno); 226 return xrep_cow_mark_file_range(xc, fsbno, rec_len); 344 if (args.fsbno == NULLFSBLOCK) 347 xfs_refcount_alloc_cow_extent(sc->tp, args.fsbno, args.len); 349 repl->fsbno [all...] |
H A D | newbt.c | 155 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); 192 .fsbno = XFS_AGB_TO_FSB(mp, pag->pag_agno, agbno), 249 if (args.fsbno == NULLFSBLOCK) 252 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); 255 XFS_FSB_TO_AGBNO(mp, args.fsbno), args.len, 268 xnr->alloc_hint = args.fsbno + args.len; 323 if (args.fsbno == NULLFSBLOCK) 326 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); 329 XFS_FSB_TO_AGBNO(mp, args.fsbno), args.len, 344 xnr->alloc_hint = args.fsbno 378 xfs_fsblock_t fsbno; local [all...] |
H A D | reap.c | 362 xfs_fsblock_t fsbno; local 365 fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, agbno); 391 xfs_refcount_free_cow_extent(sc->tp, fsbno, *aglenp); 423 xfs_refcount_free_cow_extent(sc->tp, fsbno, *aglenp); 424 error = xfs_free_extent_later(sc->tp, fsbno, *aglenp, NULL, 450 error = xfs_free_extent_later(sc->tp, fsbno, *aglenp, rs->oinfo, 545 uint64_t fsbno, 551 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, fsbno); 552 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); 544 xreap_fsmeta_extent( uint64_t fsbno, uint64_t len, void *priv) argument
|
H A D | quota_repair.c | 408 xfs_fsblock_t fsbno; local 489 for (fsbno = irec.br_startblock, off = irec.br_startoff; 490 fsbno < irec.br_startblock + irec.br_blockcount; 491 fsbno += XFS_DQUOT_CLUSTER_SIZE_FSB, 494 XFS_FSB_TO_DADDR(sc->mp, fsbno),
|
H A D | ialloc_repair.c | 637 xfs_fsblock_t fsbno; local 659 fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, 661 xrep_newbt_init_ag(&ri->new_inobt, sc, &XFS_RMAP_OINFO_INOBT, fsbno, 680 fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, 683 fsbno, resv);
|
H A D | refcount_repair.c | 593 xfs_fsblock_t fsbno; local 606 fsbno = XFS_AGB_TO_FSB(sc->mp, pag->pag_agno, xfs_refc_block(sc->mp)); 607 xrep_newbt_init_ag(&rr->new_btree, sc, &XFS_RMAP_OINFO_REFC, fsbno,
|
H A D | bmap_repair.c | 241 xfs_fsblock_t fsbno; local 272 fsbno = XFS_AGB_TO_FSB(mp, cur->bc_ag.pag->pag_agno, 277 return xfsb_bitmap_set(&rb->old_bmbt_blocks, fsbno, 281 return xrep_bmap_from_rmap(rb, rec->rm_offset, fsbno,
|
H A D | rmap_repair.c | 386 xfs_fsblock_t fsbno; local 393 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); 394 if (XFS_FSB_TO_AGNO(cur->bc_mp, fsbno) != rf->rr->sc->sa.pag->pag_agno) 397 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 1297 xfs_fsblock_t fsbno; local 1315 fsbno = XFS_AGB_TO_FSB(sc->mp, pag->pag_agno, XFS_RMAP_BLOCK(sc->mp)); 1317 fsbno, XFS_AG_RESV_RMAPBT);
|
H A D | trace.h | 474 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 480 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 481 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 516 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 524 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 525 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 558 xfs_fsblock_t fsbno = xchk_btree_cur_fsbno(cur, level); 563 __entry->agno = XFS_FSB_TO_AGNO(cur->bc_mp, fsbno); 564 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 596 xfs_fsblock_t fsbno [all...] |
H A D | inode_repair.c | 795 xfs_fsblock_t fsbno; local 803 fsbno = be64_to_cpu(*fpp); 804 if (!xfs_verify_fsbno(sc->mp, fsbno))
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_types.c | 44 xfs_fsblock_t fsbno) 46 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); 50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); 60 xfs_fsblock_t fsbno, 63 if (fsbno + len <= fsbno) 66 if (!xfs_verify_fsbno(mp, fsbno)) 69 if (!xfs_verify_fsbno(mp, fsbno + len - 1)) 72 return XFS_FSB_TO_AGNO(mp, fsbno) == 73 XFS_FSB_TO_AGNO(mp, fsbno 42 xfs_verify_fsbno( struct xfs_mount *mp, xfs_fsblock_t fsbno) argument 58 xfs_verify_fsbext( struct xfs_mount *mp, xfs_fsblock_t fsbno, xfs_fsblock_t len) argument [all...] |
H A D | xfs_types.h | 220 bool xfs_verify_fsbno(struct xfs_mount *mp, xfs_fsblock_t fsbno); 221 bool xfs_verify_fsbext(struct xfs_mount *mp, xfs_fsblock_t fsbno,
|
H A D | xfs_format.h | 440 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ 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) 459 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) 672 #define XFS_FSB_TO_AGNO(mp,fsbno) \ 673 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog)) 674 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ [all...] |
H A D | xfs_ialloc_btree.c | 127 if (args.fsbno == NULLFSBLOCK) { 133 new->s = cpu_to_be32(XFS_FSB_TO_AGBNO(args.mp, args.fsbno)); 168 xfs_fsblock_t fsbno; local 171 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, xfs_buf_daddr(bp)); 172 return xfs_free_extent_later(cur->bc_tp, fsbno, 1,
|
H A D | xfs_bmap_btree.c | 241 if (args.fsbno == NULLFSBLOCK && args.minleft) { 253 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { 265 new->l = cpu_to_be64(args.fsbno); 279 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); local 284 error = xfs_free_extent_later(cur->bc_tp, fsbno, 1, &oinfo,
|
H A D | xfs_refcount_btree.c | 81 if (args.fsbno == NULLFSBLOCK) { 107 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); local 111 return xfs_free_extent_later(cur->bc_tp, fsbno, 1,
|
H A D | xfs_bmap.c | 235 xfs_fsblock_t fsbno, /* file system block number */ 236 struct xfs_buf **bpp) /* buffer for fsbno */ 241 if (!xfs_verify_fsbno(mp, fsbno)) 244 XFS_FSB_TO_DADDR(mp, fsbno), mp->m_bsize, 0, &bp, 693 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) { 702 XFS_FSB_TO_DADDR(mp, args.fsbno), 731 *pp = cpu_to_be64(args.fsbno); 837 ASSERT(args.fsbno != NULLFSBLOCK); 840 XFS_FSB_TO_DADDR(args.mp, args.fsbno), 864 rec.br_startblock = args.fsbno; 232 xfs_bmap_read_buf( struct xfs_mount *mp, struct xfs_trans *tp, xfs_fsblock_t fsbno, struct xfs_buf **bpp) argument [all...] |
H A D | xfs_alloc.h | 39 xfs_fsblock_t fsbno; /* file system block number */ member in struct:xfs_alloc_arg 132 * Iterate from the AG indicated from args->fsbno through to the end of the
|
H A D | xfs_refcount.c | 1117 xfs_fsblock_t fsbno; local 1171 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, 1174 error = xfs_free_extent_later(cur->bc_tp, fsbno, 1235 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, 1238 error = xfs_free_extent_later(cur->bc_tp, fsbno,
|
H A D | xfs_alloc.c | 2560 xfs_fsblock_t fsbno = XFS_AGB_TO_FSB(mp, agno, agbno); local 2565 if (XFS_IS_CORRUPT(mp, !xfs_verify_fsbno(mp, fsbno))) 2570 xefi->xefi_startblock = fsbno; 2676 * Caller must ensure that the tp, fsbno, len, oinfo, and resv flags of the 2687 error = xfs_defer_extent_free(args->tp, args->fsbno, args->len, 3431 args->fsbno = NULLFSBLOCK; 3557 args->fsbno = NULLFSBLOCK; 3562 args->fsbno = XFS_AGB_TO_FSB(mp, args->agno, args->agbno); 3567 XFS_AG_CHECK_DADDR(mp, XFS_FSB_TO_DADDR(mp, args->fsbno), args->len);
|
H A D | xfs_ialloc.c | 716 args.fsbno = NULLFSBLOCK; 789 if (unlikely(args.fsbno == NULLFSBLOCK)) { 824 if (isaligned && args.fsbno == NULLFSBLOCK) { 839 args.fsbno == NULLFSBLOCK) { 873 if (args.fsbno == NULLFSBLOCK)
|
H A D | xfs_ag.c | 1012 err2 = xfs_free_extent_later(*tpp, args.fsbno, delta, NULL,
|
/linux-master/fs/xfs/ |
H A D | xfs_notify_failure.c | 169 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, daddr); local 170 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); 213 ri_low.rm_startblock = XFS_FSB_TO_AGBNO(mp, fsbno); 231 fsbno = XFS_AGB_TO_FSB(mp, agno + 1, 0);
|
H A D | xfs_rtalloc.c | 668 xfs_fsblock_t fsbno; /* filesystem block for bno */ local 726 for (bno = map.br_startoff, fsbno = map.br_startblock; 728 bno++, fsbno++) { 744 d = XFS_FSB_TO_DADDR(mp, fsbno);
|