/linux-master/fs/xfs/scrub/ |
H A D | ialloc.c | 68 xfs_agino_t agino, 81 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_LE, &has_record); 91 if (frec.ir_startino + XFS_INODES_PER_CHUNK <= agino) 95 frec_idx = agino - frec.ir_startino; 135 xfs_agino_t agino, 147 for (i = agino, rec_idx = agino - irec->ir_startino; 148 i < agino + nr_inodes; 171 xfs_agino_t agino, 184 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_L 65 xchk_inobt_xref_finobt( struct xfs_scrub *sc, struct xfs_inobt_rec_incore *irec, xfs_agino_t agino, bool free, bool hole) argument 132 xchk_inobt_chunk_xref_finobt( struct xfs_scrub *sc, struct xfs_inobt_rec_incore *irec, xfs_agino_t agino, unsigned int nr_inodes) argument 168 xchk_finobt_xref_inobt( struct xfs_scrub *sc, struct xfs_inobt_rec_incore *frec, xfs_agino_t agino, bool ffree, bool fhole) argument 220 xchk_finobt_chunk_xref_inobt( struct xfs_scrub *sc, struct xfs_inobt_rec_incore *frec, xfs_agino_t agino, unsigned int nr_inodes) argument 253 xchk_iallocbt_chunk( struct xchk_btree *bs, struct xfs_inobt_rec_incore *irec, xfs_agino_t agino, unsigned int nr_inodes) argument 308 xfs_agino_t agino; local 581 xfs_agino_t agino; local [all...] |
H A D | iscan.c | 101 xfs_agino_t agino = *cursor; local 107 if (agino > last) { 117 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_LE, &has_rec); 153 if (rec.ir_startino + XFS_INODES_PER_CHUNK <= agino) 165 if (agino >= rec.ir_startino) 167 agino + 1 - rec.ir_startino); 202 xfs_agino_t agino) 215 cursor = XFS_AGINO_TO_INO(mp, agno, agino); 229 * Prepare to return agno/agino to the iscan caller by moving the lastino 270 xfs_agino_t agino; local 199 xchk_iscan_move_cursor( struct xchk_iscan *iscan, xfs_agnumber_t agno, xfs_agino_t agino) argument [all...] |
H A D | ialloc_repair.c | 150 xfs_agino_t agino; local 156 agino = cluster_ag_base + cluster_index; 157 fsino = XFS_AGINO_TO_INO(mp, agno, agino); 172 error = xchk_inode_is_allocated(sc, agino, inuse); 346 xfs_agino_t agino; local 378 agino = XFS_AGB_TO_AGINO(mp, agbno); 379 if (!xfs_verify_agino(sc->sa.pag, agino)) 382 agino = XFS_AGB_TO_AGINO(mp, agbno + len) - 1; 383 if (!xfs_verify_agino(sc->sa.pag, agino)) 645 * earlier. The records were collected in order of increasing agino, [all...] |
H A D | inode.c | 611 xfs_agino_t agino; local 618 agino = XFS_INO_TO_AGINO(sc->mp, ino); 624 error = xfs_inobt_lookup(sc->sa.fino_cur, agino, XFS_LOOKUP_LE, 639 if (rec.ir_startino > agino || 640 rec.ir_startino + XFS_INODES_PER_CHUNK <= agino) 643 if (rec.ir_free & XFS_INOBT_MASK(agino - rec.ir_startino))
|
H A D | agheader.c | 880 xfs_agino_t agino; local 928 agino = be32_to_cpu(agi->agi_newino); 929 if (!xfs_verify_agino_or_null(pag, agino)) 932 agino = be32_to_cpu(agi->agi_dirino); 933 if (!xfs_verify_agino_or_null(pag, agino)) 938 agino = be32_to_cpu(agi->agi_unlinked[i]); 939 if (!xfs_verify_agino_or_null(pag, agino))
|
H A D | rmap_repair.c | 636 xfs_agino_t agino; local 650 agino = irec.ir_startino; 654 agbno = XFS_AGINO_TO_AGBNO(mp, agino); 665 for (i = 0, agino = irec.ir_startino; 667 i += iperhole / XFS_INODES_PER_HOLEMASK_BIT, agino += iperhole) { 673 agbno = XFS_AGINO_TO_AGBNO(mp, agino);
|
H A D | common.h | 275 int xchk_inode_is_allocated(struct xfs_scrub *sc, xfs_agino_t agino,
|
H A D | common.c | 1335 xfs_agino_t agino, 1357 ino = XFS_AGINO_TO_INO(sc->mp, pag->pag_agno, agino); 1363 ip = radix_tree_lookup(&pag->pag_ici_root, agino); 1333 xchk_inode_is_allocated( struct xfs_scrub *sc, xfs_agino_t agino, bool *inuse) argument
|
H A D | inode_repair.c | 173 xfs_agino_t agino; local 178 agino = be32_to_cpu(dip->di_next_unlinked); 180 if (xfs_verify_agino_or_null(bp->b_pag, agino))
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_types.c | 84 xfs_agino_t agino) 90 return agino >= first && agino <= last; 103 xfs_agino_t agino = XFS_INO_TO_AGINO(mp, ino); local 107 if (XFS_AGINO_TO_INO(mp, agno, agino) != ino) 109 return xfs_verify_agno_agino(mp, agno, agino); 81 xfs_verify_agno_agino( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) argument
|
H A D | xfs_ag.h | 207 xfs_verify_agino(struct xfs_perag *pag, xfs_agino_t agino) argument 209 if (agino < pag->agino_min) 211 if (agino > pag->agino_max) 221 xfs_verify_agino_or_null(struct xfs_perag *pag, xfs_agino_t agino) argument 223 if (agino == NULLAGINO) 225 return xfs_verify_agino(pag, agino);
|
H A D | xfs_ialloc.c | 1015 xfs_agino_t agino, 1022 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_EQ, &i); 2003 xfs_agino_t agino, 2017 ASSERT(XFS_AGINO_TO_AGBNO(mp, agino) < be32_to_cpu(agi->agi_length)); 2031 if ((error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_LE, &i))) { 2055 off = agino - rec.ir_startino; 2139 xfs_agino_t agino, 2145 int offset = agino - ibtrec->ir_startino; 2257 xfs_agino_t agino; /* allocation group inode number */ local 2271 agino 1013 xfs_ialloc_get_rec( struct xfs_btree_cur *cur, xfs_agino_t agino, xfs_inobt_rec_incore_t *rec, int *done) argument 1999 xfs_difree_inobt( struct xfs_perag *pag, struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agino_t agino, struct xfs_icluster *xic, struct xfs_inobt_rec_incore *orec) argument 2135 xfs_difree_finobt( struct xfs_perag *pag, struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agino_t agino, struct xfs_inobt_rec_incore *ibtrec) argument 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 2391 xfs_agino_t agino; /* inode number within alloc group */ local 2793 xfs_agino_t agino; local 3061 xfs_agino_t agino; local [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_iwalk.c | 128 * @agino so that we skip them. This is how we restart an inode walk that was 133 xfs_agino_t agino, /* starting inode of chunk */ 138 idx = agino - irec->ir_startino; 245 * inobt and make the record look like all the inodes before agino are free so 258 xfs_agino_t agino, 277 if (agino == 0) 287 error = xfs_inobt_lookup(*curpp, agino, XFS_LOOKUP_LE, has_more); 292 * If the LE lookup at @agino yields no records, jump ahead to the 315 if (irec->ir_startino + XFS_INODES_PER_CHUNK <= agino) 319 * If agino fel 132 xfs_iwalk_adjust_start( xfs_agino_t agino, struct xfs_inobt_rec_incore *irec) argument 256 xfs_iwalk_ag_start( struct xfs_iwalk_ag *iwag, xfs_agino_t agino, struct xfs_btree_cur **curpp, struct xfs_buf **agi_bpp, int *has_more) argument 405 xfs_agino_t agino; local [all...] |
H A D | xfs_icache.c | 227 xfs_agino_t agino, 236 radix_tree_tag_set(&pag->pag_ici_root, agino, tag); 266 xfs_agino_t agino, 274 * Reclaim can signal (with a null agino) that it cleared its own tag 277 if (agino != NULLAGINO) 278 radix_tree_tag_clear(&pag->pag_ici_root, agino, tag); 615 xfs_agino_t agino = XFS_INO_TO_AGINO(mp, ino); local 706 error = radix_tree_insert(&pag->pag_ici_root, agino, ip); 753 xfs_agino_t agino; local 766 agino 225 xfs_perag_set_inode_tag( struct xfs_perag *pag, xfs_agino_t agino, unsigned int tag) argument 264 xfs_perag_clear_inode_tag( struct xfs_perag *pag, xfs_agino_t agino, unsigned int tag) argument [all...] |
H A D | xfs_inode.c | 1943 xfs_agino_t agino) 1948 ip = radix_tree_lookup(&pag->pag_ici_root, agino); 1969 * Update the prev pointer of the next agino. Returns -ENOLINK if the inode 2103 xfs_agino_t agino = XFS_INO_TO_AGINO(mp, ip->i_ino); local 2104 short bucket_index = agino % XFS_AGI_UNLINKED_BUCKETS; 2113 if (next_agino == agino || 2124 error = xfs_iunlink_update_backref(pag, agino, next_agino); 2126 error = xfs_iunlink_reload_next(tp, agibp, agino, next_agino); 2143 return xfs_iunlink_update_bucket(tp, pag, agibp, bucket_index, agino); 2189 xfs_agino_t agino local 1941 xfs_iunlink_lookup( struct xfs_perag *pag, xfs_agino_t agino) argument 3809 xfs_agino_t agino = XFS_INO_TO_AGINO(mp, ip->i_ino); local [all...] |
H A D | xfs_itable.c | 251 * next chunk. In other words, the magic agino value of zero takes us to the 252 * first chunk in the AG, and an agino value past the end of the AG takes us to 264 xfs_agino_t agino = XFS_INO_TO_AGINO(mp, startino); local 267 startino != XFS_AGINO_TO_INO(mp, agno, agino);
|
H A D | xfs_trace.h | 13 * agino: per-AG inode number 890 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino, 892 TP_ARGS(mp, agno, agino, holemask, nagino, nholemask), 896 __field(xfs_agino_t, agino) 904 __entry->agino = agino; 909 TP_printk("dev %d:%d agno 0x%x agino 0x%x holemask 0x%x new_agino 0x%x new_holemask 0x%x", 912 __entry->agino, 919 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino, 921 TP_ARGS(mp, agno, agino, holemas [all...] |
H A D | xfs_log_recover.c | 2692 xfs_agino_t prev_agino, agino; local 2695 agino = be32_to_cpu(agi->agi_unlinked[bucket]); 2696 while (agino != NULLAGINO) { 2698 XFS_AGINO_TO_INO(mp, pag->pag_agno, agino), 2706 agino = ip->i_next_unlinked; 2726 prev_agino = agino;
|
H A D | xfs_super.c | 283 xfs_agino_t agino; local 303 agino = XFS_AGB_TO_AGINO(mp, sbp->sb_agblocks - 1); 304 ino = XFS_AGINO_TO_INO(mp, agcount - 1, agino); 319 ino = XFS_AGINO_TO_INO(mp, index, agino);
|