/fs/xfs/scrub/ |
D | reap.c | 107 xfs_agblock_t agbno) in xreap_put_freelist() argument 122 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xreap_put_freelist() 133 agfl_bp, agbno, 0); in xreap_put_freelist() 136 xfs_extent_busy_insert(sc->tp, sc->sa.pag, agbno, 1, in xreap_put_freelist() 214 xfs_agblock_t agbno, in xreap_agextent_binval() argument 221 xfs_agblock_t agbno_next = agbno + *aglenp; in xreap_agextent_binval() 222 xfs_agblock_t bno = agbno; in xreap_agextent_binval() 228 if (!xfs_verify_agbno(pag, agbno) || in xreap_agextent_binval() 281 trace_xreap_agextent_binval(sc->sa.pag, agbno, *aglenp); in xreap_agextent_binval() 293 xfs_agblock_t agbno, in xreap_agextent_select() argument [all …]
|
D | agheader.c | 40 xfs_agblock_t agbno; in xchk_superblock_xref() local 46 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref() 49 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 52 xchk_xref_is_used_space(sc, agbno, 1); in xchk_superblock_xref() 53 xchk_xref_is_not_inode_chunk(sc, agbno, 1); in xchk_superblock_xref() 54 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS); in xchk_superblock_xref() 55 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_superblock_xref() 56 xchk_xref_is_not_cow_staging(sc, agbno, 1); in xchk_superblock_xref() 404 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local 423 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt() [all …]
|
D | alloc.c | 47 xfs_agblock_t agbno, in xchk_allocbt_xref_other() argument 63 error = xfs_alloc_lookup_le(*pcur, agbno, len, &has_otherrec); in xchk_allocbt_xref_other() 79 if (fbno != agbno || flen != len) in xchk_allocbt_xref_other() 89 xfs_agblock_t agbno = irec->ar_startblock; in xchk_allocbt_xref() local 95 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref() 96 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref() 97 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref() 98 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref() 99 xchk_xref_is_not_cow_staging(sc, agbno, len); in xchk_allocbt_xref() 172 xfs_agblock_t agbno, in xchk_xref_is_used_space() argument [all …]
|
D | bmap.c | 121 xfs_agblock_t agbno, in xchk_bmap_get_rmap() argument 150 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap() 153 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap() 170 xfs_agblock_t agbno) in xchk_bmap_xref_rmap() argument 180 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap() 187 if (rmap.rm_startblock != agbno) in xchk_bmap_xref_rmap() 192 if (rmap_end != agbno + irec->br_blockcount) in xchk_bmap_xref_rmap() 237 xfs_agblock_t agbno) in xchk_bmap_xref_rmap_cow() argument 247 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap_cow() 255 if (rmap.rm_startblock > agbno) in xchk_bmap_xref_rmap_cow() [all …]
|
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() 279 xchk_xref_is_only_owned_by(sc, agbno, len, &XFS_RMAP_OINFO_INODES); 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 382 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base); in xchk_iallocbt_check_cluster() 399 imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xchk_iallocbt_check_cluster() [all …]
|
D | scrub.h | 173 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno, 175 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 177 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 179 void xchk_xref_is_only_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 181 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 183 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
|
D | trace.h | 252 __field(xfs_agblock_t, agbno) 259 __entry->agbno = xfs_daddr_to_agbno(sc->mp, daddr); 266 __entry->agbno, 1076 TP_PROTO(struct xfs_perag *pag, xfs_agblock_t agbno, xfs_extlen_t len), 1077 TP_ARGS(pag, agbno, len), 1081 __field(xfs_agblock_t, agbno) 1087 __entry->agbno = agbno; 1093 __entry->agbno, 1098 TP_PROTO(struct xfs_perag *pag, xfs_agblock_t agbno, xfs_extlen_t len), \ 1099 TP_ARGS(pag, agbno, len)) [all …]
|
D | agheader_repair.c | 109 xfs_agblock_t agbno, in xrep_agf_check_agfl_block() argument 114 if (!xfs_verify_agbno(sc->sa.pag, agbno)) in xrep_agf_check_agfl_block() 502 xfs_agblock_t agbno = start; in xrep_agfl_check_extent() local 503 xfs_agblock_t last_agbno = agbno + len - 1; in xrep_agfl_check_extent() 506 while (agbno <= last_agbno) { in xrep_agfl_check_extent() 509 error = xfs_rmap_has_other_keys(ra->rmap_cur, agbno, 1, in xrep_agfl_check_extent() 515 error = xagb_bitmap_set(&ra->crossed, agbno, 1); in xrep_agfl_check_extent() 522 agbno++; in xrep_agfl_check_extent() 656 xfs_agblock_t agbno = start; in xrep_agfl_fill() local 659 trace_xrep_agfl_insert(sc->sa.pag, agbno, len); in xrep_agfl_fill() [all …]
|
D | repair.c | 445 xfs_agblock_t *agbno = priv; in xrep_findroot_agfl_walk() local 447 return (*agbno == bno) ? -ECANCELED : 0; in xrep_findroot_agfl_walk() 456 xfs_agblock_t agbno, in xrep_findroot_block() argument 466 daddr = XFS_AGB_TO_DADDR(mp, ri->sc->sa.pag->pag_agno, agbno); in xrep_findroot_block() 476 xrep_findroot_agfl_walk, &agbno); in xrep_findroot_block() 591 fab->root = agbno; in xrep_findroot_block() 595 trace_xrep_findroot_block(mp, ri->sc->sa.pag->pag_agno, agbno, in xrep_findroot_block()
|
D | inode.c | 680 xfs_agblock_t agbno; in xchk_inode_xref() local 687 agbno = XFS_INO_TO_AGBNO(sc->mp, ino); in xchk_inode_xref() 690 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref() 693 xchk_xref_is_used_space(sc, agbno, 1); in xchk_inode_xref() 695 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_INODES); in xchk_inode_xref() 696 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_inode_xref() 697 xchk_xref_is_not_cow_staging(sc, agbno, 1); in xchk_inode_xref()
|
D | refcount.c | 540 xfs_agblock_t agbno, in xchk_xref_is_cow_staging() argument 552 agbno, &has_refcount); in xchk_xref_is_cow_staging() 584 xfs_agblock_t agbno, in xchk_xref_is_not_shared() argument 594 XFS_REFC_DOMAIN_SHARED, agbno, len, &outcome); in xchk_xref_is_not_shared() 605 xfs_agblock_t agbno, in xchk_xref_is_not_cow_staging() argument 615 agbno, len, &outcome); in xchk_xref_is_not_cow_staging()
|
D | rmap.c | 105 xfs_agblock_t agbno = irec->rm_startblock; in xchk_rmapbt_xref() local 111 xchk_xref_is_used_space(sc, agbno, len); in xchk_rmapbt_xref() 113 xchk_xref_is_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref() 115 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref() 368 xfs_agblock_t agbno, in xchk_rmapbt_walk_agfl() argument 373 return xagb_bitmap_set(bitmap, agbno, 1); in xchk_rmapbt_walk_agfl()
|
D | bitmap.c | 276 xfs_agblock_t agbno; in xagb_bitmap_visit_btblock() local 283 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); in xagb_bitmap_visit_btblock() 285 return xagb_bitmap_set(bitmap, agbno, 1); in xagb_bitmap_visit_btblock()
|
/fs/xfs/libxfs/ |
D | xfs_refcount.c | 38 xfs_agblock_t agbno, xfs_extlen_t aglen); 40 xfs_agblock_t agbno, xfs_extlen_t aglen); 385 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument 393 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); in xfs_refcount_split_extent() 408 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent() 413 &rcext, agbno); in xfs_refcount_split_extent() 417 tmp.rc_startblock = agbno; in xfs_refcount_split_extent() 418 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent() 425 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent() 529 xfs_agblock_t *agbno, in xfs_refcount_merge_left_extent() argument [all …]
|
D | xfs_alloc.c | 931 diff = xfs_alloc_compute_diff(args->agbno, args->len, in xfs_alloc_cur_check() 991 args->agbno = acur->bno; in xfs_alloc_cur_finish() 1019 error = xfs_alloc_lookup_ge(cur, args->agbno, cur_len, &i); in xfs_alloc_cntbt_iter() 1042 if (bno > args->agbno) { in xfs_alloc_cntbt_iter() 1134 *fbnop = args->agbno = fbno; in xfs_alloc_ag_vextent_small() 1160 args->agbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_small() 1210 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact() 1226 ASSERT(fbno <= args->agbno); in xfs_alloc_ag_vextent_exact() 1239 if (tbno > args->agbno) in xfs_alloc_ag_vextent_exact() 1244 if (tend < args->agbno + args->minlen) in xfs_alloc_ag_vextent_exact() [all …]
|
D | xfs_ag.h | 164 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) in xfs_verify_agbno() argument 166 if (agbno >= pag->block_count) in xfs_verify_agbno() 168 if (agbno <= pag->min_block) in xfs_verify_agbno() 176 xfs_agblock_t agbno, in xfs_verify_agbext() argument 179 if (agbno + len <= agbno) in xfs_verify_agbext() 182 if (!xfs_verify_agbno(pag, agbno)) in xfs_verify_agbext() 185 return xfs_verify_agbno(pag, agbno + len - 1); in xfs_verify_agbext()
|
D | xfs_ialloc.c | 291 xfs_agblock_t agbno, in xfs_ialloc_inode_init() argument 332 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); in xfs_ialloc_inode_init() 343 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init() 352 d = XFS_AGB_TO_DADDR(mp, agno, agbno + in xfs_ialloc_inode_init() 442 xfs_agblock_t agbno; in xfs_align_sparse_ino() local 446 agbno = XFS_AGINO_TO_AGBNO(mp, *startino); in xfs_align_sparse_ino() 447 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino() 685 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + in xfs_ialloc_ag_alloc() 690 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc() 713 args.agbno)); in xfs_ialloc_ag_alloc() [all …]
|
D | xfs_alloc.h | 41 xfs_agblock_t agbno; /* allocation group-relative block # */ member 146 xfs_agblock_t agbno, 156 xfs_agblock_t agbno, in xfs_free_extent() argument 161 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false); in xfs_free_extent()
|
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()
|
/fs/xfs/ |
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()
|
D | xfs_trace.h | 1624 xfs_agblock_t agbno, xfs_extlen_t len), 1625 TP_ARGS(mp, agno, agbno, len), 1629 __field(xfs_agblock_t, agbno) 1635 __entry->agbno = agbno; 1641 __entry->agbno, 1647 xfs_agblock_t agbno, xfs_extlen_t len), \ 1648 TP_ARGS(mp, agno, agbno, len)) 1657 xfs_agblock_t agbno, xfs_extlen_t len, 1659 TP_ARGS(mp, agno, agbno, len, tbno, tlen), 1663 __field(xfs_agblock_t, agbno) [all …]
|
D | xfs_reflink.c | 132 xfs_agblock_t agbno, in xfs_reflink_find_shared() argument 148 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen, in xfs_reflink_find_shared() 175 xfs_agblock_t agbno; in xfs_reflink_trim_around_shared() local 190 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xfs_reflink_trim_around_shared() 193 error = xfs_reflink_find_shared(pag, NULL, agbno, aglen, &fbno, &flen, in xfs_reflink_trim_around_shared() 205 if (fbno == agbno) { in xfs_reflink_trim_around_shared() 223 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 1577 xfs_agblock_t agbno; in xfs_reflink_inode_has_shared_extents() local 1587 agbno = XFS_FSB_TO_AGBNO(mp, got.br_startblock); in xfs_reflink_inode_has_shared_extents() 1589 error = xfs_reflink_find_shared(pag, tp, agbno, aglen, in xfs_reflink_inode_has_shared_extents()
|
D | xfs_extfree_item.c | 382 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, in xfs_trans_free_extent() local 393 agbno, xefi->xefi_blockcount); in xfs_trans_free_extent() 395 error = __xfs_free_extent(tp, xefi->xefi_pag, agbno, in xfs_trans_free_extent() 597 xfs_agblock_t agbno; in xfs_agfl_free_finish_item() local 602 agbno = XFS_FSB_TO_AGBNO(mp, xefi->xefi_startblock); in xfs_agfl_free_finish_item() 605 trace_xfs_agfl_free_deferred(mp, xefi->xefi_pag->pag_agno, 0, agbno, in xfs_agfl_free_finish_item() 611 agbno, agbp, &oinfo); in xfs_agfl_free_finish_item()
|
D | xfs_iwalk.c | 102 xfs_agblock_t agbno; in xfs_iwalk_ichunk_ra() local 106 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_iwalk_ichunk_ra() 114 xfs_btree_reada_bufs(mp, pag->pag_agno, agbno, in xfs_iwalk_ichunk_ra() 118 agbno += igeo->blocks_per_cluster; in xfs_iwalk_ichunk_ra()
|
D | xfs_icreate_item.h | 18 xfs_agblock_t agbno, unsigned int count,
|