Home
last modified time | relevance | path

Searched refs:agi (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_ialloc_btree.c48 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_set_root() local
50 agi->agi_root = nptr->s; in xfs_inobt_set_root()
51 be32_add_cpu(&agi->agi_level, inc); in xfs_inobt_set_root()
62 struct xfs_agi *agi = agbp->b_addr; in xfs_finobt_set_root() local
64 agi->agi_free_root = nptr->s; in xfs_finobt_set_root()
65 be32_add_cpu(&agi->agi_free_level, inc); in xfs_finobt_set_root()
77 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_mod_blockcount() local
83 be32_add_cpu(&agi->agi_fblocks, howmuch); in xfs_inobt_mod_blockcount()
85 be32_add_cpu(&agi->agi_iblocks, howmuch); in xfs_inobt_mod_blockcount()
236 struct xfs_agi *agi in xfs_inobt_init_ptr_from_cur() local
248 struct xfs_agi *agi = cur->bc_ag.agbp->b_addr; xfs_finobt_init_ptr_from_cur() local
466 struct xfs_agi *agi = agbp->b_addr; xfs_inobt_init_cursor() local
502 struct xfs_agi *agi = agbp->b_addr; xfs_inobt_commit_staged_btree() local
716 struct xfs_agi *agi; xfs_finobt_read_blocks() local
[all...]
H A Dxfs_ag.c315 struct xfs_agi *agi = bp->b_addr; in xfs_agiblock_init() local
318 agi->agi_magicnum = cpu_to_be32(XFS_AGI_MAGIC); in xfs_agiblock_init()
319 agi->agi_versionnum = cpu_to_be32(XFS_AGI_VERSION); in xfs_agiblock_init()
320 agi->agi_seqno = cpu_to_be32(id->agno); in xfs_agiblock_init()
321 agi->agi_length = cpu_to_be32(id->agsize); in xfs_agiblock_init()
322 agi->agi_count = 0; in xfs_agiblock_init()
323 agi->agi_root = cpu_to_be32(XFS_IBT_BLOCK(mp)); in xfs_agiblock_init()
324 agi->agi_level = cpu_to_be32(1); in xfs_agiblock_init()
325 agi->agi_freecount = 0; in xfs_agiblock_init()
326 agi in xfs_agiblock_init()
499 struct xfs_agi *agi; xfs_ag_extend_space() local
555 struct xfs_agi *agi; xfs_ag_get_geometry() local
[all...]
H A Dxfs_ialloc.c180 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_insert() local
181 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert()
221 struct xfs_agi *agi) in xfs_check_agi_freecount()
247 ASSERT(freecount == be32_to_cpu(agi->agi_freecount)); in xfs_check_agi_freecount()
252 #define xfs_check_agi_freecount(cur, agi) 0
528 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_insert_sprec() local
529 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec()
618 struct xfs_agi *agi; in xfs_ialloc_ag_alloc() local
661 agi = agbp->b_addr; in xfs_ialloc_ag_alloc()
662 newino = be32_to_cpu(agi in xfs_ialloc_ag_alloc()
219 xfs_check_agi_freecount( struct xfs_btree_cur *cur, struct xfs_agi *agi) xfs_check_agi_freecount() argument
1132 struct xfs_agi *agi = agbp->b_addr; xfs_dialloc_ag_inobt() local
1486 xfs_dialloc_ag_finobt_newino( struct xfs_agi *agi, struct xfs_btree_cur *cur, struct xfs_inobt_rec_incore *rec) xfs_dialloc_ag_finobt_newino() argument
1581 struct xfs_agi *agi = agbp->b_addr; xfs_dialloc_ag() local
1936 struct xfs_agi *agi = agbp->b_addr; xfs_difree_inobt() local
2069 struct xfs_agi *agi = agbp->b_addr; xfs_difree_finobt() local
2480 struct xfs_agi *agi = bp->b_addr; xfs_ialloc_log_agi() local
2513 struct xfs_agi *agi = bp->b_addr; xfs_agi_verify() local
2582 struct xfs_agi *agi = bp->b_addr; xfs_agi_write_verify() local
2641 struct xfs_agi *agi; /* allocation group header */ xfs_ialloc_read_agi() local
[all...]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_ialloc_btree.c50 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_set_root() local
52 agi->agi_root = nptr->s; in xfs_inobt_set_root()
53 be32_add_cpu(&agi->agi_level, inc); in xfs_inobt_set_root()
64 struct xfs_agi *agi = agbp->b_addr; in xfs_finobt_set_root() local
66 agi->agi_free_root = nptr->s; in xfs_finobt_set_root()
67 be32_add_cpu(&agi->agi_free_level, inc); in xfs_finobt_set_root()
79 struct xfs_agi *agi = agbp->b_addr; in xfs_inobt_mod_blockcount() local
85 be32_add_cpu(&agi->agi_fblocks, howmuch); in xfs_inobt_mod_blockcount()
87 be32_add_cpu(&agi->agi_iblocks, howmuch); in xfs_inobt_mod_blockcount()
240 struct xfs_agi *agi in xfs_inobt_init_ptr_from_cur() local
252 struct xfs_agi *agi = cur->bc_ag.agbp->b_addr; xfs_finobt_init_ptr_from_cur() local
483 struct xfs_agi *agi = agbp->b_addr; xfs_inobt_init_cursor() local
518 struct xfs_agi *agi = agbp->b_addr; xfs_inobt_commit_staged_btree() local
778 struct xfs_agi *agi; xfs_finobt_read_blocks() local
[all...]
H A Dxfs_ag.c723 struct xfs_agi *agi = bp->b_addr; in xfs_agiblock_init() local
726 agi->agi_magicnum = cpu_to_be32(XFS_AGI_MAGIC); in xfs_agiblock_init()
727 agi->agi_versionnum = cpu_to_be32(XFS_AGI_VERSION); in xfs_agiblock_init()
728 agi->agi_seqno = cpu_to_be32(id->agno); in xfs_agiblock_init()
729 agi->agi_length = cpu_to_be32(id->agsize); in xfs_agiblock_init()
730 agi->agi_count = 0; in xfs_agiblock_init()
731 agi->agi_root = cpu_to_be32(XFS_IBT_BLOCK(mp)); in xfs_agiblock_init()
732 agi->agi_level = cpu_to_be32(1); in xfs_agiblock_init()
733 agi->agi_freecount = 0; in xfs_agiblock_init()
734 agi in xfs_agiblock_init()
914 struct xfs_agi *agi; xfs_ag_shrink_space() local
1034 struct xfs_agi *agi; xfs_ag_extend_space() local
1091 struct xfs_agi *agi; xfs_ag_get_geometry() local
[all...]
H A Dxfs_ialloc.c641 struct xfs_agi *agi; in xfs_ialloc_ag_alloc() local
683 agi = agbp->b_addr; in xfs_ialloc_ag_alloc()
684 newino = be32_to_cpu(agi->agi_newino); in xfs_ialloc_ag_alloc()
690 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc()
756 be32_to_cpu(agi->agi_root))); in xfs_ialloc_ag_alloc()
769 be32_to_cpu(agi->agi_root))); in xfs_ialloc_ag_alloc()
805 be32_to_cpu(agi->agi_root))); in xfs_ialloc_ag_alloc()
903 be32_add_cpu(&agi->agi_count, newlen); in xfs_ialloc_ag_alloc()
904 be32_add_cpu(&agi->agi_freecount, newlen); in xfs_ialloc_ag_alloc()
907 agi in xfs_ialloc_ag_alloc()
1012 struct xfs_agi *agi = agbp->b_addr; xfs_dialloc_ag_inobt() local
1364 xfs_dialloc_ag_finobt_newino( struct xfs_agi *agi, struct xfs_btree_cur *cur, struct xfs_inobt_rec_incore *rec) xfs_dialloc_ag_finobt_newino() argument
1460 struct xfs_agi *agi = agbp->b_addr; xfs_dialloc_ag() local
1926 struct xfs_agi *agi = agbp->b_addr; xfs_difree_inobt() local
2459 struct xfs_agi *agi = bp->b_addr; xfs_ialloc_log_agi() local
2492 struct xfs_agi *agi = bp->b_addr; xfs_agi_verify() local
2559 struct xfs_agi *agi = bp->b_addr; xfs_agi_write_verify() local
2621 struct xfs_agi *agi; xfs_ialloc_read_agi() local
[all...]
/kernel/linux/linux-5.10/fs/xfs/scrub/
H A Dagheader_repair.c756 struct xfs_agi *agi = agi_bp->b_addr; in xrep_agi_init_header() local
759 memcpy(old_agi, agi, sizeof(*old_agi)); in xrep_agi_init_header()
760 memset(agi, 0, BBTOB(agi_bp->b_length)); in xrep_agi_init_header()
761 agi->agi_magicnum = cpu_to_be32(XFS_AGI_MAGIC); in xrep_agi_init_header()
762 agi->agi_versionnum = cpu_to_be32(XFS_AGI_VERSION); in xrep_agi_init_header()
763 agi->agi_seqno = cpu_to_be32(sc->sa.agno); in xrep_agi_init_header()
764 agi->agi_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno)); in xrep_agi_init_header()
765 agi->agi_newino = cpu_to_be32(NULLAGINO); in xrep_agi_init_header()
766 agi->agi_dirino = cpu_to_be32(NULLAGINO); in xrep_agi_init_header()
768 uuid_copy(&agi in xrep_agi_init_header()
781 xrep_agi_set_roots( struct xfs_scrub *sc, struct xfs_agi *agi, struct xrep_find_ag_btree *fab) xrep_agi_set_roots() argument
802 struct xfs_agi *agi = agi_bp->b_addr; xrep_agi_calc_from_btrees() local
854 struct xfs_agi *agi = agi_bp->b_addr; xrep_agi_commit_new() local
893 struct xfs_agi *agi; xrep_agi() local
[all...]
H A Dagheader.c768 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_icounts() local
779 if (be32_to_cpu(agi->agi_count) != icount || in xchk_agi_xref_icounts()
780 be32_to_cpu(agi->agi_freecount) != freecount) in xchk_agi_xref_icounts()
789 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_fiblocks() local
800 if (blocks != be32_to_cpu(agi->agi_iblocks)) in xchk_agi_xref_fiblocks()
808 if (blocks != be32_to_cpu(agi->agi_fblocks)) in xchk_agi_xref_fiblocks()
847 struct xfs_agi *agi; in xchk_agi() local
867 agi = sc->sa.agi_bp->b_addr; in xchk_agi()
870 eoag = be32_to_cpu(agi->agi_length); in xchk_agi()
875 agbno = be32_to_cpu(agi in xchk_agi()
[all...]
H A Dcommon.h123 struct xfs_buf **agi, struct xfs_buf **agf,
H A Dcommon.c405 struct xfs_buf **agi, in xchk_ag_read_headers()
412 error = xfs_ialloc_read_agi(mp, sc->tp, agno, agi); in xchk_ag_read_headers()
402 xchk_ag_read_headers( struct xfs_scrub *sc, xfs_agnumber_t agno, struct xfs_buf **agi, struct xfs_buf **agf, struct xfs_buf **agfl) xchk_ag_read_headers() argument
/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dagheader_repair.c855 struct xfs_agi *agi = agi_bp->b_addr; in xrep_agi_init_header() local
859 memcpy(old_agi, agi, sizeof(*old_agi)); in xrep_agi_init_header()
860 memset(agi, 0, BBTOB(agi_bp->b_length)); in xrep_agi_init_header()
861 agi->agi_magicnum = cpu_to_be32(XFS_AGI_MAGIC); in xrep_agi_init_header()
862 agi->agi_versionnum = cpu_to_be32(XFS_AGI_VERSION); in xrep_agi_init_header()
863 agi->agi_seqno = cpu_to_be32(pag->pag_agno); in xrep_agi_init_header()
864 agi->agi_length = cpu_to_be32(pag->block_count); in xrep_agi_init_header()
865 agi->agi_newino = cpu_to_be32(NULLAGINO); in xrep_agi_init_header()
866 agi->agi_dirino = cpu_to_be32(NULLAGINO); in xrep_agi_init_header()
868 uuid_copy(&agi in xrep_agi_init_header()
881 xrep_agi_set_roots( struct xfs_scrub *sc, struct xfs_agi *agi, struct xrep_find_ag_btree *fab) xrep_agi_set_roots() argument
902 struct xfs_agi *agi = agi_bp->b_addr; xrep_agi_calc_from_btrees() local
950 struct xfs_agi *agi = agi_bp->b_addr; xrep_agi_commit_new() local
991 struct xfs_agi *agi; xrep_agi() local
[all...]
H A Dagheader.c797 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_icounts() local
808 if (be32_to_cpu(agi->agi_count) != icount || in xchk_agi_xref_icounts()
809 be32_to_cpu(agi->agi_freecount) != freecount) in xchk_agi_xref_icounts()
818 struct xfs_agi *agi = sc->sa.agi_bp->b_addr; in xchk_agi_xref_fiblocks() local
829 if (blocks != be32_to_cpu(agi->agi_iblocks)) in xchk_agi_xref_fiblocks()
837 if (blocks != be32_to_cpu(agi->agi_fblocks)) in xchk_agi_xref_fiblocks()
874 struct xfs_agi *agi; in xchk_agi() local
893 agi = sc->sa.agi_bp->b_addr; in xchk_agi()
897 eoag = be32_to_cpu(agi->agi_length); in xchk_agi()
902 agbno = be32_to_cpu(agi in xchk_agi()
[all...]
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_inode.c1905 struct xfs_agi *agi = agibp->b_addr; in xfs_iunlink_update_bucket() local
1911 old_value = be32_to_cpu(agi->agi_unlinked[bucket_index]); in xfs_iunlink_update_bucket()
1925 agi->agi_unlinked[bucket_index] = cpu_to_be32(new_agino); in xfs_iunlink_update_bucket()
1998 struct xfs_agi *agi = agibp->b_addr; in xfs_iunlink_insert_inode() local
2005 * Get the index into the agi hash table for the list this inode will in xfs_iunlink_insert_inode()
2009 next_agino = be32_to_cpu(agi->agi_unlinked[bucket_index]); in xfs_iunlink_insert_inode()
2065 /* Get the agi buffer first. It ensures lock ordering on the list. */ in xfs_iunlink()
2084 struct xfs_agi *agi = agibp->b_addr; in xfs_iunlink_remove_inode() local
2093 * Get the index into the agi hash table for the list this inode will in xfs_iunlink_remove_inode()
2096 head_agino = be32_to_cpu(agi in xfs_iunlink_remove_inode()
3660 struct xfs_agi *agi; xfs_inode_reload_unlinked_bucket() local
[all...]
H A Dxfs_log_recover.c2634 * in an agi unlinked inode hash bucket.
2643 struct xfs_agi *agi; in xlog_recover_clear_agi_bucket() local
2656 agi = agibp->b_addr; in xlog_recover_clear_agi_bucket()
2657 agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO); in xlog_recover_clear_agi_bucket()
2671 xfs_warn(mp, "%s: failed to clear agi %d. Continuing.", __func__, in xlog_recover_clear_agi_bucket()
2679 struct xfs_agi *agi, in xlog_recover_iunlink_bucket()
2688 agino = be32_to_cpu(agi->agi_unlinked[bucket]); in xlog_recover_iunlink_bucket()
2746 * If everything we touch in the agi processing loop is already in memory, this
2763 struct xfs_agi *agi; in xlog_recover_iunlink_ag() local
2787 agi in xlog_recover_iunlink_ag()
2677 xlog_recover_iunlink_bucket( struct xfs_perag *pag, struct xfs_agi *agi, int bucket) xlog_recover_iunlink_bucket() argument
[all...]
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_inode.c2109 struct xfs_agi *agi = agibp->b_addr; in xfs_iunlink_update_bucket() local
2115 old_value = be32_to_cpu(agi->agi_unlinked[bucket_index]); in xfs_iunlink_update_bucket()
2129 agi->agi_unlinked[bucket_index] = cpu_to_be32(new_agino); in xfs_iunlink_update_bucket()
2232 struct xfs_agi *agi; in xfs_iunlink() local
2244 /* Get the agi buffer first. It ensures lock ordering on the list. */ in xfs_iunlink()
2248 agi = agibp->b_addr; in xfs_iunlink()
2251 * Get the index into the agi hash table for the list this inode will in xfs_iunlink()
2255 next_agino = be32_to_cpu(agi->agi_unlinked[bucket_index]); in xfs_iunlink()
2411 struct xfs_agi *agi; in xfs_iunlink_remove() local
2424 /* Get the agi buffe in xfs_iunlink_remove()
[all...]
H A Dxfs_log_recover.c2625 * in an agi unlinked inode hash bucket.
2634 xfs_agi_t *agi; in xlog_recover_clear_agi_bucket() local
2647 agi = agibp->b_addr; in xlog_recover_clear_agi_bucket()
2648 agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO); in xlog_recover_clear_agi_bucket()
2662 xfs_warn(mp, "%s: failed to clear agi %d. Continuing.", __func__, agno); in xlog_recover_clear_agi_bucket()
2733 * If everything we touch in the agi processing loop is already in memory, this
2752 xfs_agi_t *agi; in xlog_recover_process_iunlinks() local
2762 * Find the agi for this ag. in xlog_recover_process_iunlinks()
2783 agi = agibp->b_addr; in xlog_recover_process_iunlinks()
2787 agino = be32_to_cpu(agi in xlog_recover_process_iunlinks()
3545 struct xfs_agi *agi = agibp->b_addr; xlog_recover_check_summary() local
[all...]

Completed in 25 milliseconds