/linux-master/fs/xfs/scrub/ |
H A D | agb_bitmap.c | 61 xfs_agblock_t agbno; local 68 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 70 return xagb_bitmap_set(bitmap, agbno, 1);
|
H A D | reap.c | 111 xfs_agblock_t agbno) 126 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, 137 agfl_bp, agbno, 0); 140 xfs_extent_busy_insert(sc->tp, sc->sa.pag, agbno, 1, 218 xfs_agblock_t agbno, 225 xfs_agblock_t agbno_next = agbno + *aglenp; 226 xfs_agblock_t bno = agbno; 232 if (!xfs_verify_agbno(pag, agbno) || 285 trace_xreap_agextent_binval(sc->sa.pag, agbno, *aglenp); 297 xfs_agblock_t agbno, 109 xreap_put_freelist( struct xfs_scrub *sc, xfs_agblock_t agbno) argument 216 xreap_agextent_binval( struct xreap_state *rs, xfs_agblock_t agbno, xfs_extlen_t *aglenp) argument 295 xreap_agextent_select( struct xreap_state *rs, xfs_agblock_t agbno, xfs_agblock_t agbno_next, bool *crosslinked, xfs_extlen_t *aglenp) argument 355 xreap_agextent_iter( struct xreap_state *rs, xfs_agblock_t agbno, xfs_extlen_t *aglenp, bool crosslinked) argument 466 xreap_agmeta_extent( uint32_t agbno, uint32_t len, void *priv) argument 552 xfs_agblock_t agbno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); local [all...] |
H A D | alloc.c | 59 xfs_agblock_t agbno, 75 error = xfs_alloc_lookup_le(*pcur, agbno, len, &has_otherrec); 91 if (fbno != agbno || flen != len) 101 xfs_agblock_t agbno = irec->ar_startblock; local 107 xchk_allocbt_xref_other(sc, agbno, len); 108 xchk_xref_is_not_inode_chunk(sc, agbno, len); 109 xchk_xref_has_no_owner(sc, agbno, len); 110 xchk_xref_is_not_shared(sc, agbno, len); 111 xchk_xref_is_not_cow_staging(sc, agbno, len); 180 xfs_agblock_t agbno, 57 xchk_allocbt_xref_other( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument 178 xchk_xref_is_used_space( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument [all...] |
H A D | agheader.c | 40 xfs_agblock_t agbno; local 46 agbno = XFS_SB_BLOCK(mp); 49 if (!xchk_xref_process_error(sc, agno, agbno, &error)) 52 xchk_xref_is_used_space(sc, agbno, 1); 53 xchk_xref_is_not_inode_chunk(sc, agbno, 1); 54 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS); 55 xchk_xref_is_not_shared(sc, agbno, 1); 56 xchk_xref_is_not_cow_staging(sc, agbno, 1); 404 xfs_agblock_t agbno; local 423 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, 505 xfs_agblock_t agbno; local 536 xfs_agblock_t agbno; local 638 xchk_agfl_block_xref( struct xfs_scrub *sc, xfs_agblock_t agbno) argument 654 xchk_agfl_block( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument 693 xfs_agblock_t agbno; local 848 xfs_agblock_t agbno; local 878 xfs_agblock_t agbno; local [all...] |
H A D | scrub.h | 196 void xchk_xref_is_used_space(struct xfs_scrub *sc, xfs_agblock_t agbno, 198 void xchk_xref_is_not_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 200 void xchk_xref_is_inode_chunk(struct xfs_scrub *sc, xfs_agblock_t agbno, 202 void xchk_xref_is_only_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 204 void xchk_xref_is_not_owned_by(struct xfs_scrub *sc, xfs_agblock_t agbno, 206 void xchk_xref_has_no_owner(struct xfs_scrub *sc, xfs_agblock_t agbno,
|
H A D | newbt.h | 21 xfs_agblock_t agbno; member in struct:xrep_newbt_resv 68 xfs_agblock_t agbno, xfs_extlen_t len);
|
H A D | ialloc.c | 262 xfs_agblock_t agbno; local 265 agbno = XFS_AGINO_TO_AGBNO(mp, agino); 268 if (!xfs_verify_agbext(pag, agbno, len)) 274 xchk_xref_is_used_space(sc, agbno, len); 279 xchk_xref_is_only_owned_by(sc, agbno, len, &XFS_RMAP_OINFO_INODES); 280 xchk_xref_is_not_shared(sc, agbno, len); 281 xchk_xref_is_not_cow_staging(sc, agbno, len); 372 xfs_agblock_t agbno; local 382 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino + cluster_base); 399 imap.im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); 755 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) argument 777 xchk_xref_is_not_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument 790 xchk_xref_is_inode_chunk( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument [all...] |
H A D | bmap.c | 145 xfs_agblock_t agbno, 174 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, 177 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 194 xfs_agblock_t agbno) 204 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) 211 if (rmap.rm_startblock != agbno) 216 if (rmap_end != agbno + irec->br_blockcount) 261 xfs_agblock_t agbno) 271 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) 279 if (rmap.rm_startblock > agbno) 142 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) argument 191 xchk_bmap_xref_rmap( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno) argument 258 xchk_bmap_xref_rmap_cow( struct xchk_bmap_info *info, struct xfs_bmbt_irec *irec, xfs_agblock_t agbno) argument 331 xfs_agblock_t agbno; local [all...] |
H A D | newbt.c | 155 resv->agbno = XFS_FSB_TO_AGBNO(mp, args->fsbno); 185 xfs_agblock_t agbno, 192 .fsbno = XFS_AGB_TO_FSB(mp, pag->pag_agno, agbno), 376 xfs_agblock_t free_agbno = resv->agbno; 519 xfs_agblock_t agbno; local 536 agbno = resv->agbno + resv->used; 543 trace_xrep_newbt_claim_block(mp, resv->pag->pag_agno, agbno, 1, 548 agbno)); 550 ptr->s = cpu_to_be32(agbno); 182 xrep_newbt_add_extent( struct xrep_newbt *xnr, struct xfs_perag *pag, xfs_agblock_t agbno, xfs_extlen_t len) argument [all...] |
H A D | ialloc_repair.c | 341 xfs_agblock_t agbno, 351 if (!xfs_verify_agbext(sc->sa.pag, agbno, len)) 355 if (!IS_ALIGNED(agbno, igeo->blocks_per_cluster) || 356 !IS_ALIGNED(agbno + len, igeo->blocks_per_cluster)) 364 (!IS_ALIGNED(agbno, igeo->cluster_align) || 365 !IS_ALIGNED(agbno + len, igeo->cluster_align))) 373 (!IS_ALIGNED(agbno, mp->m_sb.sb_spino_align) || 374 !IS_ALIGNED(agbno + len, mp->m_sb.sb_spino_align))) 378 agino = XFS_AGB_TO_AGINO(mp, agbno); 382 agino = XFS_AGB_TO_AGINO(mp, agbno 339 xrep_ibt_check_inode_ext( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument [all...] |
H A D | refcount.c | 58 * b. Otherwise, record the fragment (in agbno order) for later 142 * is healthy each rmap_irec we see will be in agbno order 191 /* Make sure the fragments actually /are/ in agbno order. */ 552 xfs_agblock_t agbno, 564 agbno, &has_refcount); 596 xfs_agblock_t agbno, 606 XFS_REFC_DOMAIN_SHARED, agbno, len, &outcome); 617 xfs_agblock_t agbno, 627 agbno, len, &outcome); 550 xchk_xref_is_cow_staging( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument 594 xchk_xref_is_not_shared( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument 615 xchk_xref_is_not_cow_staging( struct xfs_scrub *sc, xfs_agblock_t agbno, xfs_extlen_t len) argument
|
H A D | trace.h | 222 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x error %d ret_ip %pS", 270 __field(xfs_agblock_t, agbno) 277 __entry->agbno = xfs_daddr_to_agbno(sc->mp, daddr); 280 TP_printk("dev %d:%d type %s agno 0x%x agbno 0x%x ret_ip %pS", 284 __entry->agbno, 486 TP_printk("dev %d:%d type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x error %d ret_ip %pS", 529 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", 568 TP_printk("dev %d:%d type %s %sbt level %d ptr %d agno 0x%x agbno 0x%x ret_ip %pS", 608 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", 647 TP_printk("dev %d:%d type %s %sbt agno 0x%x agbno [all...] |
H A D | agheader_repair.c | 110 xfs_agblock_t agbno, 115 if (!xfs_verify_agbno(sc->sa.pag, agbno)) 486 uint32_t agbno, 491 xfs_agblock_t last_agbno = agbno + len - 1; 494 while (agbno <= last_agbno) { 497 error = xfs_rmap_has_other_keys(ra->rmap_cur, agbno, 1, 503 error = xagb_bitmap_set(&ra->crossed, agbno, 1); 510 agbno++; 642 xfs_agblock_t agbno = start; local 645 trace_xrep_agfl_insert(sc->sa.pag, agbno, le 108 xrep_agf_check_agfl_block( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument 485 xrep_agfl_check_extent( uint32_t agbno, uint32_t len, void *priv) argument [all...] |
H A D | rmap_repair.c | 342 xfs_agblock_t agbno; local 350 agbno = XFS_FSB_TO_AGBNO(mp, rec->br_startblock); 359 agbno == accum->rm_startblock + accum->rm_blockcount && 370 accum->rm_startblock = agbno; 387 xfs_agblock_t agbno; local 397 agbno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 398 return xagb_bitmap_set(&rf->bmbt_blocks, agbno, 1); 634 xfs_agblock_t agbno; local 654 agbno = XFS_AGINO_TO_AGBNO(mp, agino); 658 return xagb_bitmap_set(&ri->ichunk_blocks, agbno, agle 974 xrep_rmap_walk_agfl( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument [all...] |
H A D | inode.c | 689 xfs_agblock_t agbno; local 696 agbno = XFS_INO_TO_AGBNO(sc->mp, ino); 699 if (!xchk_xref_process_error(sc, agno, agbno, &error)) 702 xchk_xref_is_used_space(sc, agbno, 1); 704 xchk_xref_is_only_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_INODES); 705 xchk_xref_is_not_shared(sc, agbno, 1); 706 xchk_xref_is_not_cow_staging(sc, agbno, 1);
|
/linux-master/fs/xfs/ |
H A D | xfs_icreate_item.h | 18 xfs_agblock_t agbno, unsigned int count,
|
H A D | xfs_icreate_item.c | 93 xfs_agblock_t agbno, 109 icp->ic_format.icl_agbno = cpu_to_be32(agbno); 152 xfs_agblock_t agbno; local 177 agbno = be32_to_cpu(icl->icl_agbno); 178 if (!agbno || agbno == NULLAGBLOCK || agbno >= mp->m_sb.sb_agblocks) { 179 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agbno"); 229 agbno + i * igeo->blocks_per_cluster); 254 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, 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) argument [all...] |
H A D | xfs_trace.h | 16 * agbno: per-AG block number in fs blocks 1631 xfs_agblock_t agbno, xfs_extlen_t len), 1632 TP_ARGS(mp, agno, agbno, len), 1636 __field(xfs_agblock_t, agbno) 1642 __entry->agbno = agbno; 1645 TP_printk("dev %d:%d agno 0x%x agbno 0x%x fsbcount 0x%x", 1648 __entry->agbno, 1654 xfs_agblock_t agbno, xfs_extlen_t len), \ 1655 TP_ARGS(mp, agno, agbno, le [all...] |
H A D | xfs_extfree_item.c | 455 xfs_agblock_t agbno; local 459 agbno = XFS_FSB_TO_AGBNO(mp, xefi->xefi_startblock); 468 agbno, xefi->xefi_blockcount); 477 error = __xfs_free_extent(tp, xefi->xefi_pag, agbno, 537 xfs_agblock_t agbno; local 542 agbno = XFS_FSB_TO_AGBNO(mp, xefi->xefi_startblock); 545 trace_xfs_agfl_free_deferred(mp, xefi->xefi_pag->pag_agno, 0, agbno, 551 agbno, agbp, &oinfo);
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_refcount.c | 39 xfs_agblock_t agbno, xfs_extlen_t aglen); 41 xfs_agblock_t agbno, xfs_extlen_t aglen); 382 * Split a refcount extent that crosses agbno. 388 xfs_agblock_t agbno, 396 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); 412 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) 417 &rcext, agbno); 421 tmp.rc_startblock = agbno; 422 tmp.rc_blockcount -= (agbno 385 xfs_refcount_split_extent( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t agbno, bool *shape_changed) argument 534 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) argument 671 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) argument 766 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) argument 993 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) argument 1108 xfs_refcount_adjust_extents( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adj) argument 1264 xfs_refcount_adjust( struct xfs_btree_cur *cur, xfs_agblock_t *agbno, xfs_extlen_t *aglen, enum xfs_refc_adjust_op adj) argument 1527 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) argument 1691 xfs_refcount_adjust_cow_extents( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) argument 1798 xfs_refcount_adjust_cow( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, enum xfs_refc_adjust_op adj) argument 1845 __xfs_refcount_cow_alloc( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) argument 1862 __xfs_refcount_cow_free( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t aglen) argument [all...] |
H A D | xfs_ag.h | 178 xfs_verify_agbno(struct xfs_perag *pag, xfs_agblock_t agbno) argument 180 if (agbno >= pag->block_count) 182 if (agbno <= pag->min_block) 190 xfs_agblock_t agbno, 193 if (agbno + len <= agbno) 196 if (!xfs_verify_agbno(pag, agbno)) 199 return xfs_verify_agbno(pag, agbno + len - 1); 188 xfs_verify_agbext( struct xfs_perag *pag, xfs_agblock_t agbno, xfs_agblock_t len) argument
|
H A D | xfs_types.c | 25 xfs_agblock_t agbno) 30 if (agbno >= eoag) 32 if (agbno <= XFS_AGFL_BLOCK(mp)) 22 xfs_verify_agno_agbno( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno) argument
|
H A D | xfs_alloc.h | 41 xfs_agblock_t agbno; /* allocation group-relative block # */ member in struct:xfs_alloc_arg 50 xfs_agblock_t min_agbno; /* set an agbno range for NEAR allocs */ 146 xfs_agblock_t agbno, 156 xfs_agblock_t agbno, 161 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false); 153 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) argument
|
H A D | xfs_alloc.c | 965 diff = xfs_alloc_compute_diff(args->agbno, args->len, 1024 args->agbno = acur->bno; 1052 error = xfs_alloc_lookup_ge(cur, args->agbno, cur_len, &i); 1069 * We looked up the first record >= [agbno, len] above. The agbno is a 1071 * agbno. If it is past agbno, check the previous record too so long as 1075 if (bno > args->agbno) { 1168 *fbnop = args->agbno = fbno; 1195 args->agbno 2428 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) argument 2552 xfs_defer_agfl_block( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, struct xfs_owner_info *oinfo) argument 2600 xfs_agblock_t agbno; local 3933 __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) argument [all...] |
H A D | xfs_ialloc.c | 300 xfs_agblock_t agbno, 341 ino = XFS_AGINO_TO_INO(mp, agno, XFS_AGB_TO_AGINO(mp, agbno)); 352 xfs_icreate_log(tp, agno, agbno, icount, 361 d = XFS_AGB_TO_DADDR(mp, agno, agbno + 451 xfs_agblock_t agbno; local 455 agbno = XFS_AGINO_TO_AGBNO(mp, *startino); 456 mod = agbno % mp->m_sb.sb_inoalignmt; 744 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + 749 (args.agbno < be32_to_cpu(agi->agi_length)))) { 772 args.agbno)); 294 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) argument 1929 xfs_agblock_t agbno; local 2255 xfs_agblock_t agbno; /* block number containing inode */ local 2319 xfs_imap_lookup( struct xfs_perag *pag, struct xfs_trans *tp, xfs_agino_t agino, xfs_agblock_t agbno, xfs_agblock_t *chunk_agbno, xfs_agblock_t *offset_agbno, int flags) argument 2390 xfs_agblock_t agbno; /* block number of inode in the alloc group */ local [all...] |