/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | reap.c | 107 xfs_agblock_t agbno) in xreap_put_freelist() 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() 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() 105 xreap_put_freelist( struct xfs_scrub *sc, xfs_agblock_t agbno) xreap_put_freelist() argument 212 xreap_agextent_binval( struct xreap_state *rs, xfs_agblock_t agbno, xfs_extlen_t *aglenp) xreap_agextent_binval() argument 291 xreap_agextent_select( struct xreap_state *rs, xfs_agblock_t agbno, xfs_agblock_t agbno_next, bool *crosslinked, xfs_extlen_t *aglenp) xreap_agextent_select() argument 351 xreap_agextent_iter( struct xreap_state *rs, xfs_agblock_t agbno, xfs_extlen_t *aglenp, bool crosslinked) xreap_agextent_iter() argument 434 xfs_agblock_t agbno = fsbno; xreap_agmeta_extent() local [all...] |
H A 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, in xchk_agf_xref_cntbt() 505 xfs_agblock_t agbno; xchk_agf_xref() local 536 xfs_agblock_t agbno; xchk_agf() local 638 xchk_agfl_block_xref( struct xfs_scrub *sc, xfs_agblock_t agbno) xchk_agfl_block_xref() argument 654 xchk_agfl_block( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) xchk_agfl_block() argument 693 xfs_agblock_t agbno; xchk_agfl_xref() local 848 xfs_agblock_t agbno; xchk_agi_xref() local 878 xfs_agblock_t agbno; xchk_agi() local [all...] |
H A D | alloc.c | 47 xfs_agblock_t agbno, in xchk_allocbt_xref_other() 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() 45 xchk_allocbt_xref_other( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_allocbt_xref_other() argument 170 xchk_xref_is_used_space( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_used_space() argument [all...] |
H A D | bmap.c | 121 xfs_agblock_t agbno, in xchk_bmap_get_rmap() 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() 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() 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() 118 xchk_bmap_get_rmap( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno, uint64_t owner, struct xfs_rmap_irec *rmap) xchk_bmap_get_rmap() argument 167 xchk_bmap_xref_rmap( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno) xchk_bmap_xref_rmap() argument 234 xchk_bmap_xref_rmap_cow( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno) xchk_bmap_xref_rmap_cow() argument 307 xfs_agblock_t agbno; xchk_bmap_iextent_xref() local [all...] |
H 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() 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() 762 xchk_xref_inode_check( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len, struct xfs_btree_cur **icur, enum xbtree_recpacking expected) xchk_xref_inode_check() argument 784 xchk_xref_is_not_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_not_inode_chunk() argument 797 xchk_xref_is_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_inode_chunk() argument [all...] |
H A 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,
|
H A D | trace.h | 204 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x error %d ret_ip %pS", 252 __field(xfs_agblock_t, agbno) 259 __entry->agbno = xfs_daddr_to_agbno(sc->mp, daddr); 262 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x ret_ip %pS", 266 __entry->agbno, 397 TP_printk("dev %d:%d type %s btree %s level %d ptr %d agno 0x%x agbno 0x%x error %d ret_ip %pS", 440 TP_printk("dev %d:%d ino 0x%llx fork %s type %s btree %s level %d ptr %d agno 0x%x agbno 0x%x error %d ret_ip %pS", 479 TP_printk("dev %d:%d type %s btree %s level %d ptr %d agno 0x%x agbno 0x%x ret_ip %pS", 519 TP_printk("dev %d:%d ino 0x%llx fork %s type %s btree %s level %d ptr %d agno 0x%x agbno 0x%x ret_ip %pS", 558 TP_printk("dev %d:%d type %s btree %s agno 0x%x agbno [all...] |
H A D | agheader_repair.c | 109 xfs_agblock_t agbno, in xrep_agf_check_agfl_block() 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, le in xrep_agfl_fill() 107 xrep_agf_check_agfl_block( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) xrep_agf_check_agfl_block() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_refcount.c | 35 xfs_agblock_t agbno, xfs_extlen_t aglen); 37 xfs_agblock_t agbno, xfs_extlen_t aglen); 339 * Split a refcount extent that crosses agbno. 344 xfs_agblock_t agbno, in xfs_refcount_split_extent() 352 error = xfs_refcount_lookup_le(cur, agbno, &found_rec); in xfs_refcount_split_extent() 365 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent() 370 &rcext, agbno); in xfs_refcount_split_extent() 374 tmp.rc_startblock = agbno; in xfs_refcount_split_extent() 375 tmp.rc_blockcount -= (agbno in xfs_refcount_split_extent() 342 xfs_refcount_split_extent( struct xfs_btree_cur *cur, xfs_agblock_t agbno, bool *shape_changed) xfs_refcount_split_extent() argument 479 xfs_refcount_merge_left_extent( struct xfs_btree_cur *cur, struct xfs_refcount_irec *left, struct xfs_refcount_irec *cleft, xfs_agblock_t *agbno, xfs_extlen_t *aglen) xfs_refcount_merge_left_extent() argument 608 xfs_refcount_find_left_extents( struct xfs_btree_cur *cur, struct xfs_refcount_irec *left, struct xfs_refcount_irec *cleft, xfs_agblock_t agbno, xfs_extlen_t aglen, int flags) xfs_refcount_find_left_extents() argument 697 xfs_refcount_find_right_extents( struct xfs_btree_cur *cur, struct xfs_refcount_irec *right, struct xfs_refcount_irec *cright, xfs_agblock_t agbno, xfs_extlen_t aglen, int flags) xfs_refcount_find_right_extents() argument 793 xfs_refcount_merge_extents( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adjust, int flags, bool *shape_changed) xfs_refcount_merge_extents() argument 914 xfs_refcount_adjust_extents( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adj, struct xfs_owner_info *oinfo) xfs_refcount_adjust_extents() argument 1044 xfs_refcount_adjust( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *new_agbno, xfs_extlen_t *new_aglen, enum xfs_refc_adjust_op adj, struct xfs_owner_info *oinfo) xfs_refcount_adjust() argument 1293 xfs_refcount_find_shared( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) xfs_refcount_find_shared() argument 1448 xfs_refcount_adjust_cow_extents( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) xfs_refcount_adjust_cow_extents() argument 1540 xfs_refcount_adjust_cow( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) xfs_refcount_adjust_cow() argument 1587 __xfs_refcount_cow_alloc( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_alloc() argument 1604 __xfs_refcount_cow_free( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_free() argument 1694 xfs_agblock_t agbno; xfs_refcount_recover_cow_leftovers() local [all...] |
H A D | xfs_alloc.c | 878 diff = xfs_alloc_compute_diff(args->agbno, args->len, in xfs_alloc_cur_check() 938 args->agbno = acur->bno; in xfs_alloc_cur_finish() 966 error = xfs_alloc_lookup_ge(cur, args->agbno, cur_len, &i); in xfs_alloc_cntbt_iter() 983 * We looked up the first record >= [agbno, len] above. The agbno is a in xfs_alloc_cntbt_iter() 985 * agbno. If it is past agbno, check the previous record too so long as in xfs_alloc_cntbt_iter() 989 if (bno > args->agbno) { in xfs_alloc_cntbt_iter() 1080 *fbnop = args->agbno = fbno; in xfs_alloc_ag_vextent_small() 1106 args->agbno in xfs_alloc_ag_vextent_small() 2329 xfs_free_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_buf *agbp, struct xfs_owner_info *oinfo) xfs_free_agfl_block() argument 2453 xfs_defer_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_fsblock_t agbno, struct xfs_owner_info *oinfo) xfs_defer_agfl_block() argument 3282 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(mp, bno); __xfs_free_extent() local [all...] |
H A D | xfs_ialloc.c | 268 xfs_agblock_t agbno, in xfs_ialloc_inode_init() 309 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); in xfs_ialloc_inode_init() 320 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init() 329 d = XFS_AGB_TO_DADDR(mp, agno, agbno + in xfs_ialloc_inode_init() 420 xfs_agblock_t agbno; in xfs_align_sparse_ino() local 424 agbno = XFS_AGINO_TO_AGBNO(mp, *startino); in xfs_align_sparse_ino() 425 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino() 664 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + in xfs_ialloc_ag_alloc() 669 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc() 670 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc() 262 xfs_ialloc_inode_init( struct xfs_mount *mp, struct xfs_trans *tp, struct list_head *buffer_list, int icount, xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_agblock_t length, unsigned int gen) xfs_ialloc_inode_init() argument 1865 xfs_agblock_t agbno; xfs_difree_inode_chunk() local 2180 xfs_agblock_t agbno; /* block number containing inode */ xfs_difree() local 2248 xfs_imap_lookup( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agino_t agino, xfs_agblock_t agbno, xfs_agblock_t *chunk_agbno, xfs_agblock_t *offset_agbno, int flags) xfs_imap_lookup() argument 2318 xfs_agblock_t agbno; /* block number of inode in the alloc group */ xfs_imap() local [all...] |
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A D | alloc.c | 38 xfs_agblock_t agbno, in xchk_allocbt_xref_other() 54 error = xfs_alloc_lookup_le(*pcur, agbno, len, &has_otherrec); in xchk_allocbt_xref_other() 70 if (fbno != agbno || flen != len) in xchk_allocbt_xref_other() 78 xfs_agblock_t agbno, in xchk_allocbt_xref() 84 xchk_allocbt_xref_other(sc, agbno, len); in xchk_allocbt_xref() 85 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_allocbt_xref() 86 xchk_xref_has_no_owner(sc, agbno, len); in xchk_allocbt_xref() 87 xchk_xref_is_not_shared(sc, agbno, len); in xchk_allocbt_xref() 144 xfs_agblock_t agbno, in xchk_xref_is_used_space() 153 error = xfs_alloc_has_record(sc->sa.bno_cur, agbno, le in xchk_xref_is_used_space() 36 xchk_allocbt_xref_other( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_allocbt_xref_other() argument 76 xchk_allocbt_xref( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_allocbt_xref() argument 142 xchk_xref_is_used_space( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_used_space() argument [all...] |
H A D | agheader.c | 30 xfs_agblock_t agbno; in xchk_superblock_xref() local 36 agbno = XFS_SB_BLOCK(mp); in xchk_superblock_xref() 39 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 42 xchk_xref_is_used_space(sc, agbno, 1); in xchk_superblock_xref() 43 xchk_xref_is_not_inode_chunk(sc, agbno, 1); in xchk_superblock_xref() 44 xchk_xref_is_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS); in xchk_superblock_xref() 45 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_superblock_xref() 382 xfs_agblock_t agbno; in xchk_agf_xref_cntbt() local 401 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); in xchk_agf_xref_cntbt() 479 xfs_agblock_t agbno; in xchk_agf_xref() local 512 xfs_agblock_t agbno; xchk_agf() local 609 xchk_agfl_block_xref( struct xfs_scrub *sc, xfs_agblock_t agbno) xchk_agfl_block_xref() argument 624 xchk_agfl_block( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) xchk_agfl_block() argument 664 xfs_agblock_t agbno; xchk_agfl_xref() local 819 xfs_agblock_t agbno; xchk_agi_xref() local 850 xfs_agblock_t agbno; xchk_agi() local [all...] |
H A D | ialloc.c | 86 xfs_agblock_t agbno, in xchk_iallocbt_chunk_xref() 92 xchk_xref_is_used_space(sc, agbno, len); in xchk_iallocbt_chunk_xref() 94 xchk_xref_is_owned_by(sc, agbno, len, &XFS_RMAP_OINFO_INODES); in xchk_iallocbt_chunk_xref() 95 xchk_xref_is_not_shared(sc, agbno, len); in xchk_iallocbt_chunk_xref() 219 xfs_agblock_t agbno; in xchk_iallocbt_check_cluster() local 229 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base); in xchk_iallocbt_check_cluster() 246 imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xchk_iallocbt_check_cluster() 271 xchk_xref_is_not_owned_by(bs->sc, agbno, in xchk_iallocbt_check_cluster() 277 xchk_xref_is_owned_by(bs->sc, agbno, M_IGEO(mp)->blocks_per_cluster, in xchk_iallocbt_check_cluster() 624 xfs_agblock_t agbno, in xchk_xref_inode_check() 82 xchk_iallocbt_chunk_xref( struct xfs_scrub *sc, struct xfs_inobt_rec_incore *irec, xfs_agino_t agino, xfs_agblock_t agbno, xfs_extlen_t len) xchk_iallocbt_chunk_xref() argument 622 xchk_xref_inode_check( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len, struct xfs_btree_cur **icur, bool should_have_inodes) xchk_xref_inode_check() argument 644 xchk_xref_is_not_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_not_inode_chunk() argument 655 xchk_xref_is_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_inode_chunk() argument [all...] |
H A D | scrub.h | 133 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno, 135 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 137 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 139 void xchk_xref_is_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 141 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 143 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
|
H A D | repair.c | 494 xfs_agblock_t agbno) in xrep_put_freelist() 508 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 515 agbno, 0); in xrep_put_freelist() 518 xfs_extent_busy_insert(sc->tp, sc->sa.agno, agbno, 1, in xrep_put_freelist() 535 xfs_agblock_t agbno; in xrep_reap_block() local 540 agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); in xrep_reap_block() 557 error = xfs_rmap_has_other_keys(cur, agbno, 1, oinfo, &has_other_rmap); in xrep_reap_block() 576 error = xfs_rmap_free(sc->tp, agf_bp, agno, agbno, 1, oinfo); in xrep_reap_block() 578 error = xrep_put_freelist(sc, agbno); in xrep_reap_block() 667 xfs_agblock_t *agbno in xrep_findroot_agfl_walk() local 492 xrep_put_freelist( struct xfs_scrub *sc, xfs_agblock_t agbno) xrep_put_freelist() argument 674 xrep_findroot_block( struct xrep_findroot *ri, struct xrep_find_ag_btree *fab, uint64_t owner, xfs_agblock_t agbno, bool *done_with_block) xrep_findroot_block() argument [all...] |
H A D | trace.h | 148 TP_printk("dev %d:%d type %s agno %u agbno %u error %d ret_ip %pS", 214 TP_printk("dev %d:%d type %s agno %u agbno %u ret_ip %pS", 349 TP_printk("dev %d:%d type %s btree %s level %d ptr %d agno %u agbno %u error %d ret_ip %pS", 392 TP_printk("dev %d:%d ino 0x%llx fork %d type %s btree %s level %d ptr %d agno %u agbno %u error %d ret_ip %pS", 431 TP_printk("dev %d:%d type %s btree %s level %d ptr %d agno %u agbno %u ret_ip %pS", 471 TP_printk("dev %d:%d ino 0x%llx fork %d type %s btree %s level %d ptr %d agno %u agbno %u ret_ip %pS", 510 TP_printk("dev %d:%d type %s btree %s agno %u agbno %u level %d nlevels %d ptr %d", 659 xfs_agblock_t agbno, xfs_extlen_t len), 660 TP_ARGS(mp, agno, agbno, len), 664 __field(xfs_agblock_t, agbno) [all...] |
H A D | bmap.c | 105 xfs_agblock_t agbno, in xchk_bmap_get_rmap() 134 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap() 145 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap() 170 xfs_agblock_t agbno) in xchk_bmap_xref_rmap() 185 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap() 190 if (rmap.rm_startblock > agbno || in xchk_bmap_xref_rmap() 191 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 255 xfs_agblock_t agbno; in xchk_bmap_iextent_xref() local 260 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref() 268 xchk_xref_is_used_space(info->sc, agbno, le in xchk_bmap_iextent_xref() 102 xchk_bmap_get_rmap( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno, uint64_t owner, struct xfs_rmap_irec *rmap) xchk_bmap_get_rmap() argument 167 xchk_bmap_xref_rmap( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno) xchk_bmap_xref_rmap() argument [all...] |
H A D | refcount.c | 41 * b. Otherwise, record the fragment (in agbno order) for later 125 * is healthy each rmap_irec we see will be in agbno order in xchk_refcountbt_rmap_check() 174 /* Make sure the fragments actually /are/ in agbno order. */ in xchk_refcountbt_process_rmap_fragments() 317 xfs_agblock_t agbno, in xchk_refcountbt_xref() 324 xchk_xref_is_used_space(sc, agbno, len); in xchk_refcountbt_xref() 325 xchk_xref_is_not_inode_chunk(sc, agbno, len); in xchk_refcountbt_xref() 326 xchk_refcountbt_xref_rmap(sc, agbno, len, refcount); in xchk_refcountbt_xref() 424 xfs_agblock_t agbno, in xchk_xref_is_cow_staging() 437 agbno + XFS_REFC_COW_START, &has_refcount); in xchk_xref_is_cow_staging() 470 xfs_agblock_t agbno, in xchk_xref_is_not_shared() 315 xchk_refcountbt_xref( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len, xfs_nlink_t refcount) xchk_refcountbt_xref() argument 422 xchk_xref_is_cow_staging( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_cow_staging() argument 468 xchk_xref_is_not_shared( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) xchk_xref_is_not_shared() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_refcount.c | 38 xfs_agblock_t agbno, xfs_extlen_t aglen); 40 xfs_agblock_t agbno, xfs_extlen_t aglen); 379 * Split a refcount extent that crosses agbno. 385 xfs_agblock_t agbno, in xfs_refcount_split_extent() 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 in xfs_refcount_split_extent() 382 xfs_refcount_split_extent( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t agbno, bool *shape_changed) xfs_refcount_split_extent() argument 525 xfs_refcount_merge_left_extent( struct xfs_btree_cur *cur, struct xfs_refcount_irec *left, struct xfs_refcount_irec *cleft, xfs_agblock_t *agbno, xfs_extlen_t *aglen) xfs_refcount_merge_left_extent() argument 656 xfs_refcount_find_left_extents( struct xfs_btree_cur *cur, struct xfs_refcount_irec *left, struct xfs_refcount_irec *cleft, enum xfs_refc_domain domain, xfs_agblock_t agbno, xfs_extlen_t aglen) xfs_refcount_find_left_extents() argument 749 xfs_refcount_find_right_extents( struct xfs_btree_cur *cur, struct xfs_refcount_irec *right, struct xfs_refcount_irec *cright, enum xfs_refc_domain domain, xfs_agblock_t agbno, xfs_extlen_t aglen) xfs_refcount_find_right_extents() argument 974 xfs_refcount_merge_extents( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adjust, bool *shape_changed) xfs_refcount_merge_extents() argument 1089 xfs_refcount_adjust_extents( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adj) xfs_refcount_adjust_extents() argument 1242 xfs_refcount_adjust( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adj) xfs_refcount_adjust() argument 1503 xfs_refcount_find_shared( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) xfs_refcount_find_shared() argument 1664 xfs_refcount_adjust_cow_extents( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) xfs_refcount_adjust_cow_extents() argument 1764 xfs_refcount_adjust_cow( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) xfs_refcount_adjust_cow() argument 1811 __xfs_refcount_cow_alloc( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_alloc() argument 1828 __xfs_refcount_cow_free( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) __xfs_refcount_cow_free() argument [all...] |
H A D | xfs_ag.h | 162 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) in xfs_verify_agbno() argument 164 if (agbno >= pag->block_count) in xfs_verify_agbno() 166 if (agbno <= pag->min_block) in xfs_verify_agbno() 174 xfs_agblock_t agbno, in xfs_verify_agbext() 177 if (agbno + len <= agbno) in xfs_verify_agbext() 180 if (!xfs_verify_agbno(pag, agbno)) in xfs_verify_agbext() 183 return xfs_verify_agbno(pag, agbno + len - 1); in xfs_verify_agbext() 172 xfs_verify_agbext( struct xfs_perag *pag, xfs_agblock_t agbno, xfs_agblock_t len) xfs_verify_agbext() argument
|
H A 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() 1036 * We looked up the first record >= [agbno, len] above. The agbno is a in xfs_alloc_cntbt_iter() 1038 * agbno. If it is past agbno, check the previous record too so long as 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 in xfs_alloc_ag_vextent_small() 2367 xfs_free_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_buf *agbp, struct xfs_owner_info *oinfo) xfs_free_agfl_block() argument 2491 xfs_defer_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_owner_info *oinfo) xfs_defer_agfl_block() argument 2538 xfs_agblock_t agbno; __xfs_free_extent_later() local 3781 __xfs_free_extent( struct xfs_trans *tp, struct xfs_perag *pag, xfs_agblock_t agbno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type, bool skip_discard) __xfs_free_extent() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_icreate_item.c | 92 xfs_agblock_t agbno, in xfs_icreate_log() 108 icp->ic_format.icl_agbno = cpu_to_be32(agbno); in xfs_icreate_log() 151 xfs_agblock_t agbno; in xlog_recover_icreate_commit_pass2() local 176 agbno = be32_to_cpu(icl->icl_agbno); in xlog_recover_icreate_commit_pass2() 177 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2() 178 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agbno"); in xlog_recover_icreate_commit_pass2() 228 agbno + i * igeo->blocks_per_cluster); in xlog_recover_icreate_commit_pass2() 253 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, in xlog_recover_icreate_commit_pass2() 89 xfs_icreate_log( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, unsigned int count, unsigned int inode_size, xfs_agblock_t length, unsigned int generation) xfs_icreate_log() argument [all...] |
H A D | xfs_trace.h | 1487 xfs_agblock_t agbno, xfs_extlen_t len), 1488 TP_ARGS(mp, agno, agbno, len), 1492 __field(xfs_agblock_t, agbno) 1498 __entry->agbno = agbno; 1501 TP_printk("dev %d:%d agno %u agbno %u len %u", 1504 __entry->agbno, 1510 xfs_agblock_t agbno, xfs_extlen_t len), \ 1511 TP_ARGS(mp, agno, agbno, len)) 1520 xfs_agblock_t agbno, xfs_extlen_ [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_icreate_item.c | 93 xfs_agblock_t agbno, in xfs_icreate_log() 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() 179 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agbno"); 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() 90 xfs_icreate_log( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, unsigned int count, unsigned int inode_size, xfs_agblock_t length, unsigned int generation) xfs_icreate_log() argument [all...] |