Searched refs:agi (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_ag.c | 239 struct xfs_agi *agi = XFS_BUF_TO_AGI(bp); in xfs_agiblock_init() local 242 agi->agi_magicnum = cpu_to_be32(XFS_AGI_MAGIC); in xfs_agiblock_init() 243 agi->agi_versionnum = cpu_to_be32(XFS_AGI_VERSION); in xfs_agiblock_init() 244 agi->agi_seqno = cpu_to_be32(id->agno); in xfs_agiblock_init() 245 agi->agi_length = cpu_to_be32(id->agsize); in xfs_agiblock_init() 246 agi->agi_count = 0; in xfs_agiblock_init() 247 agi->agi_root = cpu_to_be32(XFS_IBT_BLOCK(mp)); in xfs_agiblock_init() 248 agi->agi_level = cpu_to_be32(1); in xfs_agiblock_init() 249 agi->agi_freecount = 0; in xfs_agiblock_init() 250 agi->agi_newino = cpu_to_be32(NULLAGINO); in xfs_agiblock_init() [all …]
|
D | xfs_ialloc.c | 197 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_insert() local 198 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert() 238 struct xfs_agi *agi) in xfs_check_agi_freecount() argument 264 ASSERT(freecount == be32_to_cpu(agi->agi_freecount)); in xfs_check_agi_freecount() 269 #define xfs_check_agi_freecount(cur, agi) 0 argument 546 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_insert_sprec() local 547 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec() 627 xfs_agi_t *agi; /* allocation group header */ in xfs_ialloc_ag_alloc() local 668 agi = XFS_BUF_TO_AGI(agbp); in xfs_ialloc_ag_alloc() 669 newino = be32_to_cpu(agi->agi_newino); in xfs_ialloc_ag_alloc() [all …]
|
D | xfs_ialloc_btree.c | 50 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); 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 = XFS_BUF_TO_AGI(agbp); 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() 220 struct xfs_agi *agi = XFS_BUF_TO_AGI(cur->bc_private.a.agbp); in xfs_inobt_init_ptr_from_cur() local 222 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur() 224 ptr->s = agi->agi_root; in xfs_inobt_init_ptr_from_cur() 232 struct xfs_agi *agi = XFS_BUF_TO_AGI(cur->bc_private.a.agbp); in xfs_finobt_init_ptr_from_cur() local [all …]
|
/Linux-v4.19/fs/xfs/scrub/ |
D | agheader_repair.c | 778 struct xfs_agi *agi = XFS_BUF_TO_AGI(agi_bp); in xrep_agi_init_header() local 781 memcpy(old_agi, agi, sizeof(*old_agi)); in xrep_agi_init_header() 782 memset(agi, 0, BBTOB(agi_bp->b_length)); in xrep_agi_init_header() 783 agi->agi_magicnum = cpu_to_be32(XFS_AGI_MAGIC); in xrep_agi_init_header() 784 agi->agi_versionnum = cpu_to_be32(XFS_AGI_VERSION); in xrep_agi_init_header() 785 agi->agi_seqno = cpu_to_be32(sc->sa.agno); in xrep_agi_init_header() 786 agi->agi_length = cpu_to_be32(xfs_ag_block_count(mp, sc->sa.agno)); in xrep_agi_init_header() 787 agi->agi_newino = cpu_to_be32(NULLAGINO); in xrep_agi_init_header() 788 agi->agi_dirino = cpu_to_be32(NULLAGINO); in xrep_agi_init_header() 790 uuid_copy(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid); in xrep_agi_init_header() [all …]
|
D | agheader.c | 773 struct xfs_agi *agi = XFS_BUF_TO_AGI(sc->sa.agi_bp); in xchk_agi_xref_icounts() local 784 if (be32_to_cpu(agi->agi_count) != icount || in xchk_agi_xref_icounts() 785 be32_to_cpu(agi->agi_freecount) != freecount) in xchk_agi_xref_icounts() 824 struct xfs_agi *agi; in xchk_agi() local 843 agi = XFS_BUF_TO_AGI(sc->sa.agi_bp); in xchk_agi() 846 eoag = be32_to_cpu(agi->agi_length); in xchk_agi() 851 agbno = be32_to_cpu(agi->agi_root); in xchk_agi() 855 level = be32_to_cpu(agi->agi_level); in xchk_agi() 860 agbno = be32_to_cpu(agi->agi_free_root); in xchk_agi() 864 level = be32_to_cpu(agi->agi_free_level); in xchk_agi() [all …]
|
D | common.h | 114 struct xfs_buf **agi, struct xfs_buf **agf,
|
D | common.c | 403 struct xfs_buf **agi, in xchk_ag_read_headers() argument 410 error = xfs_ialloc_read_agi(mp, sc->tp, agno, agi); in xchk_ag_read_headers()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_inode.c | 1925 xfs_agi_t *agi; in xfs_iunlink() local 1943 agi = XFS_BUF_TO_AGI(agibp); in xfs_iunlink() 1952 ASSERT(agi->agi_unlinked[bucket_index]); in xfs_iunlink() 1953 ASSERT(be32_to_cpu(agi->agi_unlinked[bucket_index]) != agino); in xfs_iunlink() 1955 if (agi->agi_unlinked[bucket_index] != cpu_to_be32(NULLAGINO)) { in xfs_iunlink() 1968 dip->di_next_unlinked = agi->agi_unlinked[bucket_index]; in xfs_iunlink() 1985 agi->agi_unlinked[bucket_index] = cpu_to_be32(agino); in xfs_iunlink() 2003 xfs_agi_t *agi; in xfs_iunlink_remove() local 2027 agi = XFS_BUF_TO_AGI(agibp); in xfs_iunlink_remove() 2038 be32_to_cpu(agi->agi_unlinked[bucket_index]))) { in xfs_iunlink_remove() [all …]
|
D | xfs_log_recover.c | 5016 xfs_agi_t *agi; in xlog_recover_clear_agi_bucket() local 5029 agi = XFS_BUF_TO_AGI(agibp); in xlog_recover_clear_agi_bucket() 5030 agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO); in xlog_recover_clear_agi_bucket() 5123 xfs_agi_t *agi; in xlog_recover_process_iunlinks() local 5154 agi = XFS_BUF_TO_AGI(agibp); in xlog_recover_process_iunlinks() 5158 agino = be32_to_cpu(agi->agi_unlinked[bucket]); in xlog_recover_process_iunlinks() 5920 struct xfs_agi *agi = XFS_BUF_TO_AGI(agibp); in xlog_recover_check_summary() local 5922 itotal += be32_to_cpu(agi->agi_count); in xlog_recover_check_summary() 5923 ifree += be32_to_cpu(agi->agi_freecount); in xlog_recover_check_summary()
|