Home
last modified time | relevance | path

Searched refs:agbno (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.15/fs/xfs/scrub/
H A Dagheader.c41 xfs_agblock_t agbno; in xchk_superblock_xref() local
47 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref()
471 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local
572 xfs_agblock_t agbno; in xchk_agf_xref() local
577 agbno = XFS_AGF_BLOCK(mp); in xchk_agf_xref()
603 xfs_agblock_t agbno; in xchk_agf() local
707 xfs_agblock_t agbno) in xchk_agfl_block_xref() argument
723 xfs_agblock_t agbno, in xchk_agfl_block() argument
760 xfs_agblock_t agbno; in xchk_agfl_xref() local
915 xfs_agblock_t agbno; in xchk_agi_xref() local
[all …]
H A Dreap.c115 xfs_agblock_t agbno) in xreap_put_freelist() argument
141 agfl_bp, agbno, 0); in xreap_put_freelist()
264 xfs_agblock_t agbno, in xreap_agextent_binval() argument
329 xfs_agblock_t agbno, in xreap_agextent_select() argument
390 xfs_agblock_t agbno, in xreap_agextent_iter() argument
504 uint32_t agbno, in xreap_agmeta_extent() argument
541 agbno += aglen; in xreap_agmeta_extent()
645 agbno += aglen; in xreap_fsmeta_extent()
968 xfs_agblock_t agbno; in xreap_bmapi_select() local
983 bno = agbno + 1; in xreap_bmapi_select()
[all …]
H A Dalloc.c59 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 …]
H A Dialloc.c262 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()
370 xfs_agblock_t agbno; in xchk_iallocbt_check_cluster() local
422 xchk_xref_is_not_owned_by(bs->sc, agbno, in xchk_iallocbt_check_cluster()
755 xfs_agblock_t agbno, in xchk_xref_inode_check() argument
777 xfs_agblock_t agbno, in xchk_xref_is_not_inode_chunk() argument
[all …]
H A Dagb_bitmap.c61 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()
H A Dnewbt.c194 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); in xrep_newbt_add_blocks()
225 xfs_agblock_t agbno, in xrep_newbt_add_extent() argument
231 .fsbno = xfs_agbno_to_fsb(pag, agbno), in xrep_newbt_add_extent()
417 xfs_agblock_t free_agbno = resv->agbno; in xrep_newbt_free_extent()
558 xfs_agblock_t agbno; in xrep_newbt_claim_block() local
575 agbno = resv->agbno + resv->used; in xrep_newbt_claim_block()
582 trace_xrep_newbt_claim_block(resv->pag, agbno, 1, xnr->oinfo.oi_owner); in xrep_newbt_claim_block()
585 ptr->l = cpu_to_be64(xfs_agbno_to_fsb(resv->pag, agbno)); in xrep_newbt_claim_block()
587 ptr->s = cpu_to_be32(agbno); in xrep_newbt_claim_block()
H A Dscrub.h307 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno,
309 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno,
311 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno,
313 void xchk_xref_is_only_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno,
315 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno,
317 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
H A Dialloc_repair.c339 xfs_agblock_t agbno, in xrep_ibt_check_inode_ext() argument
349 if (!xfs_verify_agbext(sc->sa.pag, agbno, len)) in xrep_ibt_check_inode_ext()
353 if (!IS_ALIGNED(agbno, igeo->blocks_per_cluster) || in xrep_ibt_check_inode_ext()
354 !IS_ALIGNED(agbno + len, igeo->blocks_per_cluster)) in xrep_ibt_check_inode_ext()
362 (!IS_ALIGNED(agbno, igeo->cluster_align) || in xrep_ibt_check_inode_ext()
363 !IS_ALIGNED(agbno + len, igeo->cluster_align))) in xrep_ibt_check_inode_ext()
371 (!IS_ALIGNED(agbno, mp->m_sb.sb_spino_align) || in xrep_ibt_check_inode_ext()
372 !IS_ALIGNED(agbno + len, mp->m_sb.sb_spino_align))) in xrep_ibt_check_inode_ext()
376 agino = XFS_AGB_TO_AGINO(mp, agbno); in xrep_ibt_check_inode_ext()
380 agino = XFS_AGB_TO_AGINO(mp, agbno + len) - 1; in xrep_ibt_check_inode_ext()
[all …]
H A Dbmap.c391 xfs_agblock_t agbno; in xchk_bmap_iextent_xref() local
404 xchk_xref_is_used_space(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()
426 xchk_xref_is_not_shared(info->sc, agbno, in xchk_bmap_iextent_xref()
432 xchk_bmap_xref_rmap_cow(info, irec, agbno); in xchk_bmap_iextent_xref()
435 xchk_xref_is_cow_staging(info->sc, agbno, in xchk_bmap_iextent_xref()
[all …]
H A Drmap_repair.c345 xfs_agblock_t agbno; in xrep_rmap_visit_bmbt() local
353 agbno = XFS_FSB_TO_AGBNO(mp, rec->br_startblock); in xrep_rmap_visit_bmbt()
373 accum->rm_startblock = agbno; in xrep_rmap_visit_bmbt()
390 xfs_agblock_t agbno; in xrep_rmap_visit_iroot_btree_block() local
400 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); in xrep_rmap_visit_iroot_btree_block()
401 return xagb_bitmap_set(&rf->bmbt_blocks, agbno, 1); in xrep_rmap_visit_iroot_btree_block()
681 xfs_agblock_t agbno; in xrep_rmap_walk_inobt() local
701 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xrep_rmap_walk_inobt()
720 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xrep_rmap_walk_inobt()
1023 xfs_agblock_t agbno, in xrep_rmap_walk_agfl() argument
[all …]
H A Dnewbt.h21 xfs_agblock_t agbno; member
69 xfs_agblock_t agbno, xfs_extlen_t len);
H A Dtrace.h381 __entry->agbno,
1981 __entry->agbno = agbno;
1989 __entry->agbno,
2019 __entry->agbno = agbno;
2028 __entry->agbno,
2064 __entry->agbno,
2215 __entry->agbno,
2236 __entry->agbno = agbno;
2243 __entry->agbno,
2370 __entry->agbno = agbno;
[all …]
H A Drefcount.c553 xfs_agblock_t agbno, in xchk_xref_is_cow_staging() argument
565 agbno, &has_refcount); in xchk_xref_is_cow_staging()
597 xfs_agblock_t agbno, in xchk_xref_is_not_shared() argument
607 XFS_REFC_DOMAIN_SHARED, agbno, len, &outcome); in xchk_xref_is_not_shared()
618 xfs_agblock_t agbno, in xchk_xref_is_not_cow_staging() argument
628 agbno, len, &outcome); in xchk_xref_is_not_cow_staging()
H A Dinode.c734 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 Drmap.c115 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 Dagheader_repair.c115 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
652 while (agbno < start + len && af->fl_off < af->flcount) in xrep_agfl_fill()
[all …]
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_refcount.c426 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument
450 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent()
706 xfs_agblock_t agbno, in xfs_refcount_find_left_extents() argument
799 xfs_agblock_t agbno, in xfs_refcount_find_right_extents() argument
875 agbno + aglen); in xfs_refcount_find_right_extents()
1041 *agbno, *aglen); in xfs_refcount_merge_extents()
1045 *agbno, *aglen); in xfs_refcount_merge_extents()
1068 agbno, aglen); in xfs_refcount_merge_extents()
1803 xfs_agblock_t agbno, in xfs_refcount_adjust_cow_extents() argument
1907 xfs_agblock_t agbno, in xfs_refcount_adjust_cow() argument
[all …]
H A Dxfs_ag.h219 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) in xfs_verify_agbno() argument
221 return xfs_verify_gbno(pag_group(pag), agbno); in xfs_verify_agbno()
227 xfs_agblock_t agbno, in xfs_verify_agbext() argument
230 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 Dxfs_alloc.c1122 args->agbno = acur->bno; in xfs_alloc_cur_finish()
1173 if (bno > args->agbno) { in xfs_alloc_cntbt_iter()
1373 if (tbno > args->agbno) in xfs_alloc_ag_vextent_exact()
1388 - args->agbno; in xfs_alloc_ag_vextent_exact()
1416 args->agbno = NULLAGBLOCK; in xfs_alloc_ag_vextent_exact()
2009 args->agbno = rbno; in xfs_alloc_ag_vextent_size()
2967 targs.agbno = 0; in xfs_alloc_fix_freelist()
3001 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
3669 args->agbno = 0; in xfs_alloc_vextent_this_ag()
3741 args->agbno = 0; in xfs_alloc_vextent_iterate_ags()
[all …]
H A Dxfs_ialloc.c302 xfs_agblock_t agbno, in xfs_ialloc_inode_init() argument
363 d = XFS_AGB_TO_DADDR(mp, agno, agbno + in xfs_ialloc_inode_init()
453 xfs_agblock_t agbno; in xfs_align_sparse_ino() local
458 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino()
770 xfs_agbno_to_fsb(pag, args.agbno)); in xfs_ialloc_ag_alloc()
2005 xfs_agblock_t agbno; in xfs_difree_inode_chunk() local
2352 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xfs_difree()
2396 xfs_agblock_t agbno, in xfs_imap_lookup() argument
2447 *offset_agbno = agbno - *chunk_agbno; in xfs_imap_lookup()
2543 chunk_agbno = agbno - offset_agbno; in xfs_imap()
[all …]
H A Dxfs_alloc.h41 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()
H A Dxfs_types.c27 xfs_agblock_t agbno) in xfs_verify_agno_agbno() argument
32 if (agbno >= eoag) in xfs_verify_agno_agbno()
34 if (agbno <= XFS_AGFL_BLOCK(mp)) in xfs_verify_agno_agbno()
/linux-6.15/fs/xfs/
H A Dxfs_icreate_item.c93 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()
H A Dxfs_trace.h1855 __entry->agbno = agbno;
1863 __entry->agbno,
1893 __entry->agbno = agbno;
1903 __entry->agbno,
2062 __entry->agbno = agbno;
2071 __entry->agbno,
2105 __entry->agbno = args->agbno;
2127 __entry->agbno,
2700 __entry->agbno,
2729 __entry->agbno = agbno;
[all …]
H A Dxfs_icreate_item.h18 xfs_agblock_t agbno, unsigned int count,

12