/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_refcount.c | 37 xfs_agblock_t agbno, xfs_extlen_t aglen); 39 xfs_agblock_t agbno, xfs_extlen_t aglen); 337 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument 345 error = xfs_refcount_lookup_le(cur, agbno, &found_rec); in xfs_refcount_split_extent() 355 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent() 360 &rcext, agbno); in xfs_refcount_split_extent() 364 tmp.rc_startblock = agbno; in xfs_refcount_split_extent() 365 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent() 372 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent() 459 xfs_agblock_t *agbno, in xfs_refcount_merge_left_extent() argument [all …]
|
D | xfs_alloc.c | 740 if (error || args->agbno == NULLAGBLOCK) in xfs_alloc_ag_vextent() 746 ASSERT(args->agbno % args->alignment == 0); in xfs_alloc_ag_vextent() 751 args->agbno, args->len, &args->oinfo); in xfs_alloc_ag_vextent() 764 args->agbno, args->len)); in xfs_alloc_ag_vextent() 808 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact() 821 ASSERT(fbno <= args->agbno); in xfs_alloc_ag_vextent_exact() 834 if (tbno > args->agbno) in xfs_alloc_ag_vextent_exact() 839 if (tend < args->agbno + args->minlen) in xfs_alloc_ag_vextent_exact() 848 args->len = XFS_AGBLOCK_MIN(tend, args->agbno + args->maxlen) in xfs_alloc_ag_vextent_exact() 849 - args->agbno; in xfs_alloc_ag_vextent_exact() [all …]
|
D | xfs_ialloc.c | 285 xfs_agblock_t agbno, in xfs_ialloc_inode_init() argument 328 XFS_OFFBNO_TO_AGINO(mp, agbno, 0)); in xfs_ialloc_inode_init() 339 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init() 348 d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); in xfs_ialloc_inode_init() 438 xfs_agblock_t agbno; in xfs_align_sparse_ino() local 442 agbno = XFS_AGINO_TO_AGBNO(mp, *startino); in xfs_align_sparse_ino() 443 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino() 671 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + in xfs_ialloc_ag_alloc() 676 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc() 677 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc() [all …]
|
D | xfs_types.c | 45 xfs_agblock_t agbno) in xfs_verify_agbno() argument 50 if (agbno >= eoag) in xfs_verify_agbno() 52 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agbno()
|
D | xfs_btree.h | 276 xfs_agblock_t agbno, /* btree block disk address */ 316 xfs_agblock_t agbno, /* allocation group block number */ 372 xfs_agblock_t agbno, /* allocation group block number */
|
D | xfs_refcount.h | 45 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
|
/Linux-v4.19/fs/xfs/scrub/ |
D | agheader.c | 38 xfs_agblock_t agbno; in xchk_superblock_xref() local 44 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref() 47 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 50 xchk_xref_is_used_space(sc, agbno, 1); in xchk_superblock_xref() 51 xchk_xref_is_not_inode_chunk(sc, agbno, 1); in xchk_superblock_xref() 53 xchk_xref_is_owned_by(sc, agbno, 1, &oinfo); in xchk_superblock_xref() 54 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_superblock_xref() 391 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local 410 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt() 489 xfs_agblock_t agbno; in xchk_agf_xref() local [all …]
|
D | alloc.c | 45 xfs_agblock_t agbno, in xchk_allocbt_xref_other() argument 61 error = xfs_alloc_lookup_le(*pcur, agbno, len, &has_otherrec); in xchk_allocbt_xref_other() 77 if (fbno != agbno || flen != len) in xchk_allocbt_xref_other() 85 xfs_agblock_t agbno, in xchk_allocbt_xref() argument 91 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref() 92 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref() 93 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref() 94 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref() 154 xfs_agblock_t agbno, in xchk_xref_is_used_space() argument 163 error = xfs_alloc_has_record(sc->sa.bno_cur, agbno, len, &is_freesp); in xchk_xref_is_used_space()
|
D | ialloc.c | 82 xfs_agblock_t agbno, in xchk_iallocbt_chunk_xref() argument 90 xchk_xref_is_used_space(sc, agbno, len); in xchk_iallocbt_chunk_xref() 93 xchk_xref_is_owned_by(sc, agbno, len, &oinfo); in xchk_iallocbt_chunk_xref() 94 xchk_xref_is_not_shared(sc, agbno, len); in xchk_iallocbt_chunk_xref() 199 xfs_agblock_t agbno; in xchk_iallocbt_check_freemask() local 215 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xchk_iallocbt_check_freemask() 232 xchk_xref_is_not_owned_by(bs->sc, agbno, in xchk_iallocbt_check_freemask() 237 xchk_xref_is_owned_by(bs->sc, agbno, blks_per_cluster, in xchk_iallocbt_check_freemask() 242 agbno); in xchk_iallocbt_check_freemask() 280 xfs_agblock_t agbno; in xchk_iallocbt_rec() local [all …]
|
D | scrub.h | 118 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno, 120 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 122 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 124 void xchk_xref_is_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 126 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 128 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
|
D | trace.h | 488 xfs_agblock_t agbno, xfs_extlen_t len), 489 TP_ARGS(mp, agno, agbno, len), 493 __field(xfs_agblock_t, agbno) 499 __entry->agbno = agbno; 505 __entry->agbno, 511 xfs_agblock_t agbno, xfs_extlen_t len), \ 512 TP_ARGS(mp, agno, agbno, len)) 518 xfs_agblock_t agbno, xfs_extlen_t len, 520 TP_ARGS(mp, agno, agbno, len, owner, offset, flags), 524 __field(xfs_agblock_t, agbno) [all …]
|
D | repair.c | 504 xfs_agblock_t agbno) in xrep_put_freelist() argument 520 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 527 agbno, 0); in xrep_put_freelist() 530 xfs_extent_busy_insert(sc->tp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 547 xfs_agblock_t agbno; in xrep_reap_block() local 552 agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); in xrep_reap_block() 571 error = xfs_rmap_has_other_keys(cur, agbno, 1, oinfo, &has_other_rmap); in xrep_reap_block() 590 error = xfs_rmap_free(sc->tp, agf_bp, agno, agbno, 1, oinfo); in xrep_reap_block() 592 error = xrep_put_freelist(sc, agbno); in xrep_reap_block() 683 xfs_agblock_t *agbno = priv; in xrep_findroot_agfl_walk() local [all …]
|
D | bmap.c | 94 xfs_agblock_t agbno, in xchk_bmap_get_rmap() argument 121 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap() 132 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap() 157 xfs_agblock_t agbno) in xchk_bmap_xref_rmap() argument 172 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap() 177 if (rmap.rm_startblock > agbno || in xchk_bmap_xref_rmap() 178 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 247 xfs_agblock_t agbno; in xchk_bmap_extent_xref() local 255 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_extent_xref() 263 xchk_xref_is_used_space(info->sc, agbno, len); in xchk_bmap_extent_xref() [all …]
|
D | refcount.c | 329 xfs_agblock_t agbno, in xchk_refcountbt_xref() argument 336 xchk_xref_is_used_space(sc, agbno, len); in xchk_refcountbt_xref() 337 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_refcountbt_xref() 338 xchk_refcountbt_xref_rmap(sc, agbno, len, refcount); in xchk_refcountbt_xref() 441 xfs_agblock_t agbno, in xchk_xref_is_cow_staging() argument 454 agbno + XFS_REFC_COW_START, &has_refcount); in xchk_xref_is_cow_staging() 487 xfs_agblock_t agbno, in xchk_xref_is_not_shared() argument 496 error = xfs_refcount_has_record(sc->sa.refc_cur, agbno, len, &shared); in xchk_xref_is_not_shared()
|
D | rmap.c | 78 xfs_agblock_t agbno = irec->rm_startblock; in xchk_rmapbt_xref() local 84 xchk_xref_is_used_space(sc, agbno, len); in xchk_rmapbt_xref() 86 xchk_xref_is_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref() 88 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_rmapbt_xref()
|
D | inode.c | 514 xfs_agblock_t agbno; in xchk_inode_xref() local 521 agbno = XFS_INO_TO_AGBNO(sc->mp, ino); in xchk_inode_xref() 524 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_inode_xref() 527 xchk_xref_is_used_space(sc, agbno, 1); in xchk_inode_xref() 530 xchk_xref_is_owned_by(sc, agbno, 1, &oinfo); in xchk_inode_xref() 531 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_inode_xref()
|
D | agheader_repair.c | 96 xfs_agblock_t agbno, in xrep_agf_check_agfl_block() argument 101 if (!xfs_verify_agbno(mp, sc->sa.agno, agbno)) in xrep_agf_check_agfl_block() 593 xfs_agblock_t agbno; in xrep_agfl_init_header() local 616 agbno = XFS_FSB_TO_AGBNO(mp, br->start); in xrep_agfl_init_header() 618 trace_xrep_agfl_insert(mp, sc->sa.agno, agbno, br->len); in xrep_agfl_init_header() 621 agfl_bno[fl_off] = cpu_to_be32(agbno); in xrep_agfl_init_header() 623 agbno++; in xrep_agfl_init_header()
|
D | btree.c | 369 xfs_agblock_t agbno; in xchk_btree_check_block_owner() local 379 agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr); in xchk_btree_check_block_owner() 389 xchk_xref_is_used_space(bs->sc, agbno, 1); in xchk_btree_check_block_owner() 398 xchk_xref_is_owned_by(bs->sc, agbno, 1, bs->oinfo); in xchk_btree_check_block_owner()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_trace.h | 1388 xfs_agblock_t agbno, xfs_extlen_t len), 1389 TP_ARGS(mp, agno, agbno, len), 1393 __field(xfs_agblock_t, agbno) 1399 __entry->agbno = agbno; 1405 __entry->agbno, 1411 xfs_agblock_t agbno, xfs_extlen_t len), \ 1412 TP_ARGS(mp, agno, agbno, len)) 1421 xfs_agblock_t agbno, xfs_extlen_t len, 1423 TP_ARGS(mp, agno, agbno, len, tbno, tlen), 1427 __field(xfs_agblock_t, agbno) [all …]
|
D | xfs_trans_extfree.c | 65 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, start_block); in xfs_trans_free_extent() local 69 trace_xfs_bmap_free_deferred(tp->t_mountp, agno, 0, agbno, ext_len); in xfs_trans_free_extent() 239 xfs_agblock_t agbno; in xfs_agfl_free_finish_item() local 245 agbno = XFS_FSB_TO_AGBNO(mp, free->xefi_startblock); in xfs_agfl_free_finish_item() 247 trace_xfs_agfl_free_deferred(mp, agno, 0, agbno, free->xefi_blockcount); in xfs_agfl_free_finish_item() 251 error = xfs_free_agfl_block(tp, agno, agbno, agbp, in xfs_agfl_free_finish_item()
|
D | xfs_reflink.c | 144 xfs_agblock_t agbno, in xfs_reflink_find_shared() argument 162 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen, in xfs_reflink_find_shared() 189 xfs_agblock_t agbno; in xfs_reflink_trim_around_shared() local 204 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 207 error = xfs_reflink_find_shared(ip->i_mount, NULL, agno, agbno, in xfs_reflink_trim_around_shared() 216 } else if (fbno == agbno) { in xfs_reflink_trim_around_shared() 235 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 1486 xfs_agblock_t agbno; in xfs_reflink_dirty_extents() local 1513 agbno = XFS_FSB_TO_AGBNO(mp, map[1].br_startblock); in xfs_reflink_dirty_extents() 1516 error = xfs_reflink_find_shared(mp, NULL, agno, agbno, in xfs_reflink_dirty_extents() [all …]
|
D | xfs_icreate_item.c | 151 xfs_agblock_t agbno, in xfs_icreate_log() argument 167 icp->ic_format.icl_agbno = cpu_to_be32(agbno); in xfs_icreate_log()
|
D | xfs_icreate_item.h | 18 xfs_agblock_t agbno, unsigned int count,
|
D | xfs_itable.c | 168 xfs_agblock_t agbno; in xfs_bulkstat_ichunk_ra() local 174 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_bulkstat_ichunk_ra() 180 i += inodes_per_cluster, agbno += blks_per_cluster) { in xfs_bulkstat_ichunk_ra() 182 xfs_btree_reada_bufs(mp, agno, agbno, blks_per_cluster, in xfs_bulkstat_ichunk_ra()
|
D | xfs_reflink.h | 10 xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_extlen_t aglen,
|