| /linux/fs/xfs/scrub/ |
| A D | reap.c | 111 xfs_agblock_t agbno) in xreap_put_freelist() argument 137 agfl_bp, agbno, 0); in xreap_put_freelist() 260 xfs_agblock_t agbno, in xreap_agextent_binval() argument 326 xfs_agblock_t agbno, in xreap_agextent_select() argument 386 xfs_agblock_t agbno, in xreap_agextent_iter() argument 496 uint32_t agbno, in xreap_agmeta_extent() argument 533 agbno += aglen; in xreap_agmeta_extent() 637 agbno += aglen; in xreap_fsmeta_extent() 700 xfs_agblock_t agbno; in xreap_bmapi_select() local 715 bno = agbno + 1; in xreap_bmapi_select() [all …]
|
| A D | agheader.c | 41 xfs_agblock_t agbno; in xchk_superblock_xref() local 47 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref() 404 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local 505 xfs_agblock_t agbno; in xchk_agf_xref() local 510 agbno = XFS_AGF_BLOCK(mp); in xchk_agf_xref() 536 xfs_agblock_t agbno; in xchk_agf() local 640 xfs_agblock_t agbno) in xchk_agfl_block_xref() argument 656 xfs_agblock_t agbno, in xchk_agfl_block() argument 693 xfs_agblock_t agbno; in xchk_agfl_xref() local 848 xfs_agblock_t agbno; in xchk_agi_xref() local [all …]
|
| 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() 180 xfs_agblock_t agbno, in xchk_xref_is_used_space() argument [all …]
|
| A D | bmap.c | 145 xfs_agblock_t agbno, in xchk_bmap_get_rmap() argument 194 xfs_agblock_t agbno) in xchk_bmap_xref_rmap() argument 211 if (rmap.rm_startblock != agbno) in xchk_bmap_xref_rmap() 261 xfs_agblock_t agbno) in xchk_bmap_xref_rmap_cow() argument 279 if (rmap.rm_startblock > agbno) in xchk_bmap_xref_rmap_cow() 331 xfs_agblock_t agbno; in xchk_bmap_iextent_xref() local 348 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref() 354 xchk_xref_is_not_shared(info->sc, agbno, in xchk_bmap_iextent_xref() 361 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref() 366 xchk_xref_is_not_shared(info->sc, agbno, in xchk_bmap_iextent_xref() [all …]
|
| A D | ialloc.c | 262 xfs_agblock_t agbno; in xchk_iallocbt_chunk() local 265 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xchk_iallocbt_chunk() 268 if (!xfs_verify_agbext(pag, agbno, len)) in xchk_iallocbt_chunk() 274 xchk_xref_is_used_space(sc, agbno, len); in xchk_iallocbt_chunk() 280 xchk_xref_is_not_shared(sc, agbno, len); in xchk_iallocbt_chunk() 281 xchk_xref_is_not_cow_staging(sc, agbno, len); in xchk_iallocbt_chunk() 372 xfs_agblock_t agbno; in xchk_iallocbt_check_cluster() local 424 xchk_xref_is_not_owned_by(bs->sc, agbno, in xchk_iallocbt_check_cluster() 757 xfs_agblock_t agbno, in xchk_xref_inode_check() argument 779 xfs_agblock_t agbno, in xchk_xref_is_not_inode_chunk() argument [all …]
|
| A D | scrub.h | 276 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno, 278 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 280 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 282 void xchk_xref_is_only_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 284 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 286 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
|
| A D | agb_bitmap.c | 61 xfs_agblock_t agbno; in xagb_bitmap_visit_btblock() local 68 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); in xagb_bitmap_visit_btblock() 70 return xagb_bitmap_set(bitmap, agbno, 1); in xagb_bitmap_visit_btblock()
|
| A D | newbt.c | 155 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xrep_newbt_add_blocks() 186 xfs_agblock_t agbno, in xrep_newbt_add_extent() argument 193 .fsbno = XFS_AGB_TO_FSB(mp, pag->pag_agno, agbno), in xrep_newbt_add_extent() 377 xfs_agblock_t free_agbno = resv->agbno; in xrep_newbt_free_extent() 520 xfs_agblock_t agbno; in xrep_newbt_claim_block() local 537 agbno = resv->agbno + resv->used; in xrep_newbt_claim_block() 544 trace_xrep_newbt_claim_block(mp, resv->pag->pag_agno, agbno, 1, in xrep_newbt_claim_block() 549 agbno)); in xrep_newbt_claim_block() 551 ptr->s = cpu_to_be32(agbno); in xrep_newbt_claim_block()
|
| A D | ialloc_repair.c | 341 xfs_agblock_t agbno, in xrep_ibt_check_inode_ext() argument 351 if (!xfs_verify_agbext(sc->sa.pag, agbno, len)) in xrep_ibt_check_inode_ext() 355 if (!IS_ALIGNED(agbno, igeo->blocks_per_cluster) || in xrep_ibt_check_inode_ext() 356 !IS_ALIGNED(agbno + len, igeo->blocks_per_cluster)) in xrep_ibt_check_inode_ext() 364 (!IS_ALIGNED(agbno, igeo->cluster_align) || in xrep_ibt_check_inode_ext() 365 !IS_ALIGNED(agbno + len, igeo->cluster_align))) in xrep_ibt_check_inode_ext() 373 (!IS_ALIGNED(agbno, mp->m_sb.sb_spino_align) || in xrep_ibt_check_inode_ext() 374 !IS_ALIGNED(agbno + len, mp->m_sb.sb_spino_align))) in xrep_ibt_check_inode_ext() 378 agino = XFS_AGB_TO_AGINO(mp, agbno); in xrep_ibt_check_inode_ext() 382 agino = XFS_AGB_TO_AGINO(mp, agbno + len) - 1; in xrep_ibt_check_inode_ext() [all …]
|
| A D | trace.h | 369 __entry->agbno, 1932 __entry->agbno = agbno; 1938 __entry->agbno, 1965 __entry->agbno = agbno; 1972 __entry->agbno, 2001 __entry->agbno = agbno; 2010 __entry->agbno, 2165 __entry->agbno, 2186 __entry->agbno = agbno; 2295 __entry->agbno = agbno; [all …]
|
| 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() 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() 612 xfs_agblock_t agbno; in xrep_rmap_walk_inobt() local 632 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xrep_rmap_walk_inobt() 651 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xrep_rmap_walk_inobt() 954 xfs_agblock_t agbno, in xrep_rmap_walk_agfl() argument [all …]
|
| A D | newbt.h | 21 xfs_agblock_t agbno; member 68 xfs_agblock_t agbno, xfs_extlen_t len);
|
| 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() 596 xfs_agblock_t agbno, in xchk_xref_is_not_shared() argument 606 XFS_REFC_DOMAIN_SHARED, agbno, len, &outcome); in xchk_xref_is_not_shared() 617 xfs_agblock_t agbno, in xchk_xref_is_not_cow_staging() argument 627 agbno, len, &outcome); in xchk_xref_is_not_cow_staging()
|
| A D | inode.c | 689 xfs_agblock_t agbno; in xchk_inode_xref() local 696 agbno = XFS_INO_TO_AGBNO(sc->mp, ino); in xchk_inode_xref() 699 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref() 702 xchk_xref_is_used_space(sc, agbno, 1); in xchk_inode_xref() 704 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_INODES); in xchk_inode_xref() 705 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_inode_xref() 706 xchk_xref_is_not_cow_staging(sc, agbno, 1); in xchk_inode_xref()
|
| 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()
|
| 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() 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(sc->sa.pag, agbno, len); in xrep_agfl_fill() 652 while (agbno < start + len && af->fl_off < af->flcount) in xrep_agfl_fill() [all …]
|
| /linux/fs/xfs/libxfs/ |
| A D | xfs_refcount.c | 386 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument 410 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent() 666 xfs_agblock_t agbno, in xfs_refcount_find_left_extents() argument 759 xfs_agblock_t agbno, in xfs_refcount_find_right_extents() argument 835 agbno + aglen); in xfs_refcount_find_right_extents() 1001 *agbno, *aglen); in xfs_refcount_merge_extents() 1005 *agbno, *aglen); in xfs_refcount_merge_extents() 1028 agbno, aglen); in xfs_refcount_merge_extents() 1644 xfs_agblock_t agbno, in xfs_refcount_adjust_cow_extents() argument 1748 xfs_agblock_t agbno, in xfs_refcount_adjust_cow() argument [all …]
|
| A D | xfs_ag.h | 172 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) in xfs_verify_agbno() argument 174 if (agbno >= pag->block_count) in xfs_verify_agbno() 176 if (agbno <= pag->min_block) in xfs_verify_agbno() 184 xfs_agblock_t agbno, in xfs_verify_agbext() argument 187 if (agbno + len <= agbno) in xfs_verify_agbext() 190 if (!xfs_verify_agbno(pag, agbno)) in xfs_verify_agbext() 193 return xfs_verify_agbno(pag, agbno + len - 1); in xfs_verify_agbext()
|
| A D | xfs_alloc.c | 1124 args->agbno = acur->bno; in xfs_alloc_cur_finish() 1175 if (bno > args->agbno) { in xfs_alloc_cntbt_iter() 1374 if (tbno > args->agbno) in xfs_alloc_ag_vextent_exact() 1389 - args->agbno; in xfs_alloc_ag_vextent_exact() 1417 args->agbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_exact() 2007 args->agbno = rbno; in xfs_alloc_ag_vextent_size() 2956 targs.agbno = 0; in xfs_alloc_fix_freelist() 2990 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist() 3661 args->agbno = 0; in xfs_alloc_vextent_this_ag() 3733 args->agbno = 0; in xfs_alloc_vextent_iterate_ags() [all …]
|
| A D | xfs_ialloc.c | 300 xfs_agblock_t agbno, in xfs_ialloc_inode_init() argument 361 d = XFS_AGB_TO_DADDR(mp, agno, agbno + in xfs_ialloc_inode_init() 451 xfs_agblock_t agbno; in xfs_align_sparse_ino() local 456 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino() 772 args.agbno)); in xfs_ialloc_ag_alloc() 1985 xfs_agblock_t agbno; in xfs_difree_inode_chunk() local 2335 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_difree() 2378 xfs_agblock_t agbno, in xfs_imap_lookup() argument 2460 if (agbno >= mp->m_sb.sb_agblocks || in xfs_imap() 2524 chunk_agbno = agbno - offset_agbno; in xfs_imap() [all …]
|
| A D | xfs_alloc.h | 41 xfs_agblock_t agbno; /* allocation group-relative block # */ member 148 xfs_agblock_t agbno, 158 xfs_agblock_t agbno, in xfs_free_extent() argument 163 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false); in xfs_free_extent()
|
| A D | xfs_types.c | 25 xfs_agblock_t agbno) in xfs_verify_agno_agbno() argument 30 if (agbno >= eoag) in xfs_verify_agno_agbno() 32 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agno_agbno()
|
| /linux/fs/xfs/ |
| A D | xfs_icreate_item.c | 93 xfs_agblock_t agbno, in xfs_icreate_log() argument 109 icp->ic_format.icl_agbno = cpu_to_be32(agbno); in xfs_icreate_log() 152 xfs_agblock_t agbno; in xlog_recover_icreate_commit_pass2() local 177 agbno = be32_to_cpu(icl->icl_agbno); in xlog_recover_icreate_commit_pass2() 178 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2() 229 agbno + i * igeo->blocks_per_cluster); in xlog_recover_icreate_commit_pass2() 254 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_icreate_commit_pass2()
|
| A D | xfs_trace.h | 1649 __entry->agbno = agbno; 1684 __entry->agbno = agbno; 1777 __entry->agbno = agbno; 1820 __entry->agbno = args->agbno; 2441 __entry->agbno = agbno; 2802 __entry->agbno = agbno; 2936 __entry->agbno = agbno; 3188 __entry->agbno = agbno; 3219 __entry->agbno = agbno; 3285 __entry->agbno = agbno; [all …]
|
| A D | xfs_reflink.c | 133 xfs_agblock_t agbno, in xfs_reflink_find_shared() argument 149 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen, in xfs_reflink_find_shared() 176 xfs_agblock_t agbno; in xfs_reflink_trim_around_shared() local 191 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xfs_reflink_trim_around_shared() 194 error = xfs_reflink_find_shared(pag, NULL, agbno, aglen, &fbno, &flen, in xfs_reflink_trim_around_shared() 206 if (fbno == agbno) { in xfs_reflink_trim_around_shared() 224 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 1552 xfs_agblock_t agbno; in xfs_reflink_inode_has_shared_extents() local 1562 agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock); in xfs_reflink_inode_has_shared_extents() 1564 error = xfs_reflink_find_shared(pag, tp, agbno, aglen, in xfs_reflink_inode_has_shared_extents()
|