/linux-master/fs/xfs/libxfs/ |
H A D | xfs_ag.c | 973 if (!error && args.agbno == NULLAGBLOCK)
|
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_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_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_btree.c | 102 xfs_agblock_t agbno, 111 if (sibling == agbno) 230 xfs_agblock_t agbno; local 247 agbno = xfs_daddr_to_agbno(mp, xfs_buf_daddr(bp)); 248 fa = xfs_btree_check_agblock_siblings(pag, agbno, 251 fa = xfs_btree_check_agblock_siblings(pag, agbno, 4817 xfs_agblock_t agbno; local 4827 agbno = xfs_daddr_to_agbno(mp, xfs_buf_daddr(bp)); 4828 fa = xfs_btree_check_agblock_siblings(bp->b_pag, agbno, 4831 fa = xfs_btree_check_agblock_siblings(bp->b_pag, agbno, 100 xfs_btree_check_agblock_siblings( struct xfs_perag *pag, xfs_agblock_t agbno, __be32 dsibling) argument [all...] |
H A D | xfs_format.h | 670 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ 671 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno)) 676 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ 678 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
|
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...] |
H A D | xfs_ialloc.h | 89 xfs_agnumber_t agno, xfs_agblock_t agbno,
|
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_refcount.h | 85 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
|
H A D | xfs_refcount_btree.c | 88 new->s = cpu_to_be32(args.agbno);
|
H A D | xfs_rmap.c | 122 xfs_agblock_t agbno, 131 trace_xfs_rmap_insert(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno, 134 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); 143 rcur->bc_rec.r.rm_startblock = agbno; 166 xfs_agblock_t agbno, 175 trace_xfs_rmap_delete(rcur->bc_mp, rcur->bc_ag.pag->pag_agno, agbno, 178 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); 960 * the extent in the rmap btree. This takes the form of a [agbno, length, 120 xfs_rmap_insert( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) argument 164 xfs_rmap_delete( struct xfs_btree_cur *rcur, xfs_agblock_t agbno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags) argument
|
H A D | xfs_rmap.h | 131 int xfs_rmap_insert(struct xfs_btree_cur *rcur, xfs_agblock_t agbno,
|
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
|
/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 | 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 | 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 | 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 | alloc_repair.c | 266 xfs_agblock_t agbno, 271 return xagb_bitmap_set(&ra->not_allocbt_blocks, agbno, 1); 538 xfs_agblock_t free_agbno = resv->agbno + resv->used; 546 xfs_rmap_alloc_extent(sc->tp, pag->pag_agno, resv->agbno, 264 xrep_abt_walk_agfl( struct xfs_mount *mp, xfs_agblock_t agbno, void *priv) argument
|
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 | bmap_repair.c | 102 xfs_agblock_t agbno; local 107 agbno = XFS_FSB_TO_AGBNO(sc->mp, startblock); 108 error = xfs_refcount_find_shared(sc->sa.refc_cur, agbno, blockcount,
|
H A D | btree.c | 372 xfs_agblock_t agbno; local 380 agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr); 395 xchk_xref_is_used_space(bs->sc, agbno, 1); 404 xchk_xref_is_only_owned_by(bs->sc, agbno, 1, bs->oinfo);
|
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 | 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 | 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);
|