• Home
  • Raw
  • Download

Lines Matching refs:agi

168 	struct xfs_agi		*agi = XFS_BUF_TO_AGI(agbp);  in xfs_inobt_insert()  local
169 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert()
209 struct xfs_agi *agi) in xfs_check_agi_freecount() argument
235 ASSERT(freecount == be32_to_cpu(agi->agi_freecount)); in xfs_check_agi_freecount()
240 #define xfs_check_agi_freecount(cur, agi) 0 argument
519 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_insert_sprec() local
520 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec()
600 xfs_agi_t *agi; /* allocation group header */ in xfs_ialloc_ag_alloc() local
640 agi = XFS_BUF_TO_AGI(agbp); in xfs_ialloc_ag_alloc()
641 newino = be32_to_cpu(agi->agi_newino); in xfs_ialloc_ag_alloc()
642 agno = be32_to_cpu(agi->agi_seqno); in xfs_ialloc_ag_alloc()
648 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc()
708 args.agbno = be32_to_cpu(agi->agi_root); in xfs_ialloc_ag_alloc()
729 args.agbno = be32_to_cpu(agi->agi_root); in xfs_ialloc_ag_alloc()
745 args.agbno = be32_to_cpu(agi->agi_root); in xfs_ialloc_ag_alloc()
868 be32_add_cpu(&agi->agi_count, newlen); in xfs_ialloc_ag_alloc()
869 be32_add_cpu(&agi->agi_freecount, newlen); in xfs_ialloc_ag_alloc()
873 agi->agi_newino = cpu_to_be32(newino); in xfs_ialloc_ag_alloc()
1113 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_dialloc_ag_inobt() local
1114 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_dialloc_ag_inobt()
1138 pagino = be32_to_cpu(agi->agi_newino); in xfs_dialloc_ag_inobt()
1140 error = xfs_check_agi_freecount(cur, agi); in xfs_dialloc_ag_inobt()
1289 if (agi->agi_newino != cpu_to_be32(NULLAGINO)) { in xfs_dialloc_ag_inobt()
1290 error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino), in xfs_dialloc_ag_inobt()
1343 be32_add_cpu(&agi->agi_freecount, -1); in xfs_dialloc_ag_inobt()
1347 error = xfs_check_agi_freecount(cur, agi); in xfs_dialloc_ag_inobt()
1451 struct xfs_agi *agi, in xfs_dialloc_ag_finobt_newino() argument
1458 if (agi->agi_newino != cpu_to_be32(NULLAGINO)) { in xfs_dialloc_ag_finobt_newino()
1459 error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino), in xfs_dialloc_ag_finobt_newino()
1538 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_dialloc_ag() local
1539 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_dialloc_ag()
1561 pagino = be32_to_cpu(agi->agi_newino); in xfs_dialloc_ag()
1565 error = xfs_check_agi_freecount(cur, agi); in xfs_dialloc_ag()
1577 error = xfs_dialloc_ag_finobt_newino(agi, cur, &rec); in xfs_dialloc_ag()
1608 error = xfs_check_agi_freecount(icur, agi); in xfs_dialloc_ag()
1620 be32_add_cpu(&agi->agi_freecount, -1); in xfs_dialloc_ag()
1626 error = xfs_check_agi_freecount(icur, agi); in xfs_dialloc_ag()
1629 error = xfs_check_agi_freecount(cur, agi); in xfs_dialloc_ag()
1897 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_difree_inobt() local
1898 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_difree_inobt()
1907 ASSERT(agi->agi_magicnum == cpu_to_be32(XFS_AGI_MAGIC)); in xfs_difree_inobt()
1908 ASSERT(XFS_AGINO_TO_AGBNO(mp, agino) < be32_to_cpu(agi->agi_length)); in xfs_difree_inobt()
1915 error = xfs_check_agi_freecount(cur, agi); in xfs_difree_inobt()
1965 be32_add_cpu(&agi->agi_count, -ilen); in xfs_difree_inobt()
1966 be32_add_cpu(&agi->agi_freecount, -(ilen - 1)); in xfs_difree_inobt()
1994 be32_add_cpu(&agi->agi_freecount, 1); in xfs_difree_inobt()
2002 error = xfs_check_agi_freecount(cur, agi); in xfs_difree_inobt()
2026 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_difree_finobt() local
2027 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_difree_finobt()
2103 error = xfs_check_agi_freecount(cur, agi); in xfs_difree_finobt()
2452 xfs_agi_t *agi; /* allocation group header */ in xfs_ialloc_log_agi() local
2454 agi = XFS_BUF_TO_AGI(bp); in xfs_ialloc_log_agi()
2455 ASSERT(agi->agi_magicnum == cpu_to_be32(XFS_AGI_MAGIC)); in xfs_ialloc_log_agi()
2486 struct xfs_agi *agi) in xfs_check_agi_unlinked() argument
2491 ASSERT(agi->agi_unlinked[i]); in xfs_check_agi_unlinked()
2494 #define xfs_check_agi_unlinked(agi) argument
2502 struct xfs_agi *agi = XFS_BUF_TO_AGI(bp); in xfs_agi_verify() local
2505 if (!uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_agi_verify()
2515 if (agi->agi_magicnum != cpu_to_be32(XFS_AGI_MAGIC)) in xfs_agi_verify()
2517 if (!XFS_AGI_GOOD_VERSION(be32_to_cpu(agi->agi_versionnum))) in xfs_agi_verify()
2520 if (be32_to_cpu(agi->agi_level) > XFS_BTREE_MAXLEVELS) in xfs_agi_verify()
2528 if (bp->b_pag && be32_to_cpu(agi->agi_seqno) != bp->b_pag->pag_agno) in xfs_agi_verify()
2531 xfs_check_agi_unlinked(agi); in xfs_agi_verify()
2612 struct xfs_agi *agi; /* allocation group header */ in xfs_ialloc_read_agi() local
2622 agi = XFS_BUF_TO_AGI(*bpp); in xfs_ialloc_read_agi()
2625 pag->pagi_freecount = be32_to_cpu(agi->agi_freecount); in xfs_ialloc_read_agi()
2626 pag->pagi_count = be32_to_cpu(agi->agi_count); in xfs_ialloc_read_agi()
2634 ASSERT(pag->pagi_freecount == be32_to_cpu(agi->agi_freecount) || in xfs_ialloc_read_agi()