Home
last modified time | relevance | path

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

/linux/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()
50 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
53 xchk_xref_is_used_space(sc, agbno, 1); in xchk_superblock_xref()
54 xchk_xref_is_not_inode_chunk(sc, agbno, 1); in xchk_superblock_xref()
55 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS); in xchk_superblock_xref()
56 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_superblock_xref()
57 xchk_xref_is_not_cow_staging(sc, agbno, 1); in xchk_superblock_xref()
471 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local
490 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt()
[all …]
H A Dnewbt.c203 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 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 Drmap_repair.c342 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 Dtrace.h319 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x error %d ret_ip %pS",
367 __field(xfs_agblock_t, agbno)
374 __entry->agbno = xfs_daddr_to_agbno(sc->mp, daddr);
377 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x ret_ip %pS",
381 __entry->agbno,
584 TP_printk("dev %d:%d type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x error %d ret_ip %pS",
627 TP_printk("dev %d:%d ino 0x%llx fork %s type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x error %d ret_ip %pS",
666 TP_printk("dev %d:%d type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x ret_ip %pS",
706 TP_printk("dev %d:%d ino 0x%llx fork %s type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x ret_ip %pS",
745 TP_printk("dev %d:%d type %s %sbt agno 0x%x agbno
[all...]
H A Dnewbt.h21 xfs_agblock_t agbno; member
69 xfs_agblock_t agbno, xfs_extlen_t len);
H A Drefcount.c552 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()
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
650 trace_xrep_agfl_insert(pag_group(sc->sa.pag), agbno, len); in xrep_agfl_fill()
[all …]
H A Drefcount_repair.c165 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 Dalloc_repair.c265 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 Dbmap_repair.c105 xfs_agblock_t agbno; in xrep_bmap_discover_shared() local
111 agbno = xfs_rtb_to_rgbno(sc->mp, startblock); in xrep_bmap_discover_shared()
114 agbno = XFS_FSB_TO_AGBNO(sc->mp, startblock); in xrep_bmap_discover_shared()
117 error = xfs_refcount_find_shared(cur, agbno, blockcount, &fbno, &flen, in xrep_bmap_discover_shared()
H A Dbtree.c374 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 Dxfs_refcount.c43 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 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()
344 xfs_agblock_t agbno) in xfs_agbno_to_fsb() argument
346 return XFS_AGB_TO_FSB(pag_mount(pag), pag_agno(pag), agbno); in xfs_agbno_to_fsb()
352 xfs_agblock_t agbno) in xfs_agbno_to_daddr() argument
354 return XFS_AGB_TO_DADDR(pag_mount(pag), pag_agno(pag), agbno); in xfs_agbno_to_daddr()
H A Dxfs_ialloc.c302 xfs_agblock_t agbno, in xfs_ialloc_inode_init() argument
343 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); in xfs_ialloc_inode_init()
354 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
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
457 agbno = XFS_AGINO_TO_AGBNO(mp, *startino); in xfs_align_sparse_ino()
458 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino()
743 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + in xfs_ialloc_ag_alloc()
748 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc()
770 xfs_agbno_to_fsb(pag, args.agbno)); in xfs_ialloc_ag_alloc()
[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_ialloc.h92 xfs_agnumber_t agno, xfs_agblock_t agbno,
H A Dxfs_refcount.h90 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
H A Dxfs_format.h702 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument
703 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
708 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument
710 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
H A Dxfs_rmap.h132 int xfs_rmap_insert(struct xfs_btree_cur *rcur, xfs_agblock_t agbno,
H A Dxfs_ag.c799 if (!error && args.agbno == NULLAGBLOCK) in xfs_ag_shrink_space()
/linux/fs/xfs/
H A Dxfs_iwalk.c103 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 Dxfs_icreate_item.h18 xfs_agblock_t agbno, unsigned int count,