| /linux/fs/xfs/scrub/ |
| H A D | agheader.c | 43 xfs_agblock_t agbno; in xchk_superblock_xref() local 49 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref() 52 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 55 xchk_xref_is_used_space(sc, agbno, 1); in xchk_superblock_xref() 56 xchk_xref_is_not_inode_chunk(sc, agbno, 1); in xchk_superblock_xref() 57 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS); in xchk_superblock_xref() 58 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_superblock_xref() 59 xchk_xref_is_not_cow_staging(sc, agbno, 1); in xchk_superblock_xref() 480 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local 499 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt() [all …]
|
| H A D | alloc.c | 59 xfs_agblock_t agbno, in xchk_allocbt_xref_other() argument 75 error = xfs_alloc_lookup_le(*pcur, agbno, len, &has_otherrec); in xchk_allocbt_xref_other() 91 if (fbno != agbno || flen != len) in xchk_allocbt_xref_other() 101 xfs_agblock_t agbno = irec->ar_startblock; in xchk_allocbt_xref() local 107 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref() 108 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref() 109 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref() 110 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref() 111 xchk_xref_is_not_cow_staging(sc, agbno, len); in xchk_allocbt_xref() 181 xfs_agblock_t agbno, in xchk_xref_is_used_space() argument [all …]
|
| H A D | reap.c | 133 xfs_agblock_t agbno) in xreap_put_freelist() argument 148 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xreap_put_freelist() 159 agfl_bp, agbno, 0); in xreap_put_freelist() 162 xfs_extent_busy_insert(sc->tp, pag_group(sc->sa.pag), agbno, 1, in xreap_put_freelist() 286 xfs_agblock_t agbno, in xreap_agextent_binval() argument 292 xfs_agblock_t agbno_next = agbno + *aglenp; in xreap_agextent_binval() 293 xfs_agblock_t bno = agbno; in xreap_agextent_binval() 299 if (!xfs_verify_agbno(pag, agbno) || in xreap_agextent_binval() 338 trace_xreap_agextent_binval(pag_group(sc->sa.pag), agbno, *aglenp); in xreap_agextent_binval() 350 xfs_agblock_t agbno, in xreap_agextent_select() argument [all …]
|
| H A D | ialloc.c | 266 xfs_agblock_t agbno; in xchk_iallocbt_chunk() local 269 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xchk_iallocbt_chunk() 272 if (!xfs_verify_agbext(pag, agbno, len)) in xchk_iallocbt_chunk() 278 xchk_xref_is_used_space(sc, agbno, len); in xchk_iallocbt_chunk() 283 xchk_xref_is_only_owned_by(sc, agbno, len, &XFS_RMAP_OINFO_INODES); in xchk_iallocbt_chunk() 284 xchk_xref_is_not_shared(sc, agbno, len); in xchk_iallocbt_chunk() 285 xchk_xref_is_not_cow_staging(sc, agbno, len); in xchk_iallocbt_chunk() 375 xfs_agblock_t agbno; in xchk_iallocbt_check_cluster() local 385 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base); in xchk_iallocbt_check_cluster() 402 imap.im_agbno = agbno; in xchk_iallocbt_check_cluster() [all …]
|
| H A D | newbt.c | 203 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xrep_newbt_add_blocks() 234 xfs_agblock_t agbno, in xrep_newbt_add_extent() argument 240 .fsbno = xfs_agbno_to_fsb(pag, agbno), in xrep_newbt_add_extent() 426 xfs_agblock_t free_agbno = resv->agbno; in xrep_newbt_free_extent() 567 xfs_agblock_t agbno; in xrep_newbt_claim_block() local 584 agbno = resv->agbno + resv->used; in xrep_newbt_claim_block() 591 trace_xrep_newbt_claim_block(resv->pag, agbno, 1, xnr->oinfo.oi_owner); in xrep_newbt_claim_block() 594 ptr->l = cpu_to_be64(xfs_agbno_to_fsb(resv->pag, agbno)); in xrep_newbt_claim_block() 596 ptr->s = cpu_to_be32(agbno); in xrep_newbt_claim_block()
|
| H A D | scrub.h | 306 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno, 308 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 310 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 312 void xchk_xref_is_only_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 314 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 316 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
|
| H A D | bmap.c | 391 xfs_agblock_t agbno; in xchk_bmap_iextent_xref() local 396 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref() 404 xchk_xref_is_used_space(info->sc, agbno, len); in xchk_bmap_iextent_xref() 405 xchk_xref_is_not_inode_chunk(info->sc, agbno, len); in xchk_bmap_iextent_xref() 408 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref() 412 xchk_xref_is_only_owned_by(info->sc, agbno, in xchk_bmap_iextent_xref() 414 xchk_xref_is_not_shared(info->sc, agbno, in xchk_bmap_iextent_xref() 417 xchk_xref_is_not_cow_staging(info->sc, agbno, in xchk_bmap_iextent_xref() 421 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref() 424 xchk_xref_is_only_owned_by(info->sc, agbno, irec->br_blockcount, in xchk_bmap_iextent_xref() [all …]
|
| H A D | refcount.c | 552 xfs_agblock_t agbno, in xchk_xref_is_cow_staging() argument 564 agbno, &has_refcount); in xchk_xref_is_cow_staging() 585 if (rc.rc_startblock > agbno) in xchk_xref_is_cow_staging() 589 if (rc.rc_startblock + rc.rc_blockcount < agbno + len) in xchk_xref_is_cow_staging() 600 xfs_agblock_t agbno, in xchk_xref_is_not_shared() argument 610 XFS_REFC_DOMAIN_SHARED, agbno, len, &outcome); in xchk_xref_is_not_shared() 621 xfs_agblock_t agbno, in xchk_xref_is_not_cow_staging() argument 631 agbno, len, &outcome); in xchk_xref_is_not_cow_staging()
|
| H A D | rmap_repair.c | 342 xfs_agblock_t agbno; in xrep_rmap_visit_bmbt() local 350 agbno = XFS_FSB_TO_AGBNO(mp, rec->br_startblock); in xrep_rmap_visit_bmbt() 359 agbno == accum->rm_startblock + accum->rm_blockcount && in xrep_rmap_visit_bmbt() 370 accum->rm_startblock = agbno; in xrep_rmap_visit_bmbt() 387 xfs_agblock_t agbno; in xrep_rmap_visit_iroot_btree_block() local 397 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); in xrep_rmap_visit_iroot_btree_block() 398 return xagb_bitmap_set(&rf->bmbt_blocks, agbno, 1); in xrep_rmap_visit_iroot_btree_block() 678 xfs_agblock_t agbno; in xrep_rmap_walk_inobt() local 698 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xrep_rmap_walk_inobt() 702 return xagb_bitmap_set(&ri->ichunk_blocks, agbno, aglen); in xrep_rmap_walk_inobt() [all …]
|
| H A D | newbt.h | 21 xfs_agblock_t agbno; member 69 xfs_agblock_t agbno, xfs_extlen_t len);
|
| H A D | trace.h | 367 __field(xfs_agblock_t, agbno) 374 __entry->agbno = xfs_daddr_to_agbno(sc->mp, daddr); 381 __entry->agbno, 1992 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, 1994 TP_ARGS(xg, agbno, len), 1999 __field(xfs_agblock_t, agbno) 2006 __entry->agbno = agbno; 2014 __entry->agbno, 2019 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, \ 2021 TP_ARGS(xg, agbno, len)) [all …]
|
| H A D | inode.c | 734 xfs_agblock_t agbno; in xchk_inode_xref() local 741 agbno = XFS_INO_TO_AGBNO(sc->mp, ino); in xchk_inode_xref() 744 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref() 747 xchk_xref_is_used_space(sc, agbno, 1); in xchk_inode_xref() 749 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_INODES); in xchk_inode_xref() 750 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_inode_xref() 751 xchk_xref_is_not_cow_staging(sc, agbno, 1); in xchk_inode_xref()
|
| H A D | rmap.c | 115 xfs_agblock_t agbno = irec->rm_startblock; in xchk_rmapbt_xref() local 121 xchk_xref_is_used_space(sc, agbno, len); in xchk_rmapbt_xref() 123 xchk_xref_is_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref() 125 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref() 378 xfs_agblock_t agbno, in xchk_rmapbt_walk_agfl() argument 383 return xagb_bitmap_set(bitmap, agbno, 1); in xchk_rmapbt_walk_agfl()
|
| H A D | agheader_repair.c | 115 xfs_agblock_t agbno, in xrep_agf_check_agfl_block() argument 120 if (!xfs_verify_agbno(sc->sa.pag, agbno)) in xrep_agf_check_agfl_block() 491 uint32_t agbno, in xrep_agfl_check_extent() argument 496 xfs_agblock_t last_agbno = agbno + len - 1; in xrep_agfl_check_extent() 499 while (agbno <= last_agbno) { in xrep_agfl_check_extent() 502 error = xfs_rmap_has_other_keys(ra->rmap_cur, agbno, 1, in xrep_agfl_check_extent() 508 error = xagb_bitmap_set(&ra->crossed, agbno, 1); in xrep_agfl_check_extent() 515 agbno++; in xrep_agfl_check_extent() 647 xfs_agblock_t agbno = start; in xrep_agfl_fill() local 650 trace_xrep_agfl_insert(pag_group(sc->sa.pag), agbno, len); in xrep_agfl_fill() [all …]
|
| H A D | refcount_repair.c | 165 xfs_agblock_t agbno, in xrep_refc_stash() argument 170 .rc_startblock = agbno, in xrep_refc_stash() 195 xfs_agblock_t agbno, in xrep_refc_stash_cow() argument 198 return xrep_refc_stash(rr, XFS_REFC_DOMAIN_COW, agbno, len, 1); in xrep_refc_stash_cow()
|
| H A D | repair.c | 523 xfs_agblock_t *agbno = priv; in xrep_findroot_agfl_walk() local 525 return (*agbno == bno) ? -ECANCELED : 0; in xrep_findroot_agfl_walk() 534 xfs_agblock_t agbno, in xrep_findroot_block() argument 544 daddr = xfs_agbno_to_daddr(ri->sc->sa.pag, agbno); in xrep_findroot_block() 554 xrep_findroot_agfl_walk, &agbno); in xrep_findroot_block() 669 fab->root = agbno; in xrep_findroot_block() 673 trace_xrep_findroot_block(ri->sc->sa.pag, agbno, in xrep_findroot_block()
|
| H A D | alloc_repair.c | 265 xfs_agblock_t agbno, in xrep_abt_walk_agfl() argument 270 return xagb_bitmap_set(&ra->not_allocbt_blocks, agbno, 1); in xrep_abt_walk_agfl() 537 xfs_agblock_t free_agbno = resv->agbno + resv->used; in xrep_abt_dispose_one() 546 xfs_agbno_to_fsb(pag, resv->agbno), resv->used, in xrep_abt_dispose_one()
|
| H A D | btree.c | 374 xfs_agblock_t agbno; in xchk_btree_check_block_owner() local 385 agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner() 400 xchk_xref_is_used_space(bs->sc, agbno, 1); in xchk_btree_check_block_owner() 409 xchk_xref_is_only_owned_by(bs->sc, agbno, 1, bs->oinfo); in xchk_btree_check_block_owner()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_refcount.c | 43 xfs_agblock_t agbno, xfs_extlen_t aglen); 45 xfs_agblock_t agbno, xfs_extlen_t aglen); 426 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument 434 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); in xfs_refcount_split_extent() 450 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent() 454 trace_xfs_refcount_split_extent(cur, &rcext, agbno); in xfs_refcount_split_extent() 458 tmp.rc_startblock = agbno; in xfs_refcount_split_extent() 459 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent() 466 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent() 572 xfs_agblock_t *agbno, in xfs_refcount_merge_left_extent() argument [all …]
|
| H A D | xfs_ag.h | 217 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) in xfs_verify_agbno() argument 219 return xfs_verify_gbno(pag_group(pag), agbno); in xfs_verify_agbno() 225 xfs_agblock_t agbno, in xfs_verify_agbext() argument 228 return xfs_verify_gbext(pag_group(pag), agbno, len); in xfs_verify_agbext() 341 xfs_agblock_t agbno) in xfs_agbno_to_fsb() argument 343 return XFS_AGB_TO_FSB(pag_mount(pag), pag_agno(pag), agbno); in xfs_agbno_to_fsb() 349 xfs_agblock_t agbno) in xfs_agbno_to_daddr() argument 351 return XFS_AGB_TO_DADDR(pag_mount(pag), pag_agno(pag), agbno); in xfs_agbno_to_daddr()
|
| H A D | xfs_alloc.c | 1064 diff = xfs_alloc_compute_diff(args->agbno, args->len, in xfs_alloc_cur_check() 1122 args->agbno = acur->bno; in xfs_alloc_cur_finish() 1150 error = xfs_alloc_lookup_ge(cur, args->agbno, cur_len, &i); in xfs_alloc_cntbt_iter() 1173 if (bno > args->agbno) { in xfs_alloc_cntbt_iter() 1266 *fbnop = args->agbno = fbno; in xfs_alloc_ag_vextent_small() 1293 args->agbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_small() 1342 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact() 1359 ASSERT(fbno <= args->agbno); in xfs_alloc_ag_vextent_exact() 1373 if (tbno > args->agbno) in xfs_alloc_ag_vextent_exact() 1378 if (tend < args->agbno + args->minlen) in xfs_alloc_ag_vextent_exact() [all …]
|
| H A D | xfs_alloc.h | 41 xfs_agblock_t agbno; /* allocation group-relative block # */ member 147 xfs_agblock_t agbno, 157 xfs_agblock_t agbno, in xfs_free_extent() argument 162 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false); in xfs_free_extent()
|
| /linux/fs/xfs/ |
| H A D | xfs_iwalk.c | 103 xfs_agblock_t agbno; in xfs_iwalk_ichunk_ra() local 107 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_iwalk_ichunk_ra() 116 xfs_agbno_to_daddr(pag, agbno), in xfs_iwalk_ichunk_ra() 120 agbno += igeo->blocks_per_cluster; in xfs_iwalk_ichunk_ra()
|
| H A D | xfs_trace.h | 1964 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, 1966 TP_ARGS(xg, agbno, len), 1971 __field(xfs_agblock_t, agbno) 1978 __entry->agbno = agbno; 1986 __entry->agbno, 1991 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, \ 1993 TP_ARGS(xg, agbno, len)) 2000 TP_PROTO(const struct xfs_group *xg, xfs_agblock_t agbno, 2002 TP_ARGS(xg, agbno, len, tbno, tlen), 2007 __field(xfs_agblock_t, agbno) [all …]
|
| H A D | xfs_icreate_item.h | 18 xfs_agblock_t agbno, unsigned int count,
|