Lines Matching refs:agi

700 	struct xfs_agi		*agi;
742 agi = agbp->b_addr;
743 newino = be32_to_cpu(agi->agi_newino);
749 (args.agbno < be32_to_cpu(agi->agi_length)))) {
815 be32_to_cpu(agi->agi_root)));
828 be32_to_cpu(agi->agi_root)));
864 be32_to_cpu(agi->agi_root)));
959 be32_add_cpu(&agi->agi_count, newlen);
960 be32_add_cpu(&agi->agi_freecount, newlen);
963 agi->agi_newino = cpu_to_be32(newino);
1072 struct xfs_agi *agi = agbp->b_addr;
1094 pagino = be32_to_cpu(agi->agi_newino);
1251 if (agi->agi_newino != cpu_to_be32(NULLAGINO)) {
1252 error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino),
1317 be32_add_cpu(&agi->agi_freecount, -1);
1434 struct xfs_agi *agi,
1441 if (agi->agi_newino != cpu_to_be32(NULLAGINO)) {
1442 error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino),
1541 struct xfs_agi *agi = agbp->b_addr;
1560 pagino = be32_to_cpu(agi->agi_newino);
1571 * not, consider the agi hint or find the first free inode in the AG.
1576 error = xfs_dialloc_ag_finobt_newino(agi, cur, &rec);
1601 * agi and superblock yet, so we can create an inobt cursor and validate
1619 be32_add_cpu(&agi->agi_freecount, -1);
1849 * ok_alloc so we scan all available agi structures for a free
2008 struct xfs_agi *agi = agbp->b_addr;
2016 ASSERT(agi->agi_magicnum == cpu_to_be32(XFS_AGI_MAGIC));
2017 ASSERT(XFS_AGINO_TO_AGBNO(mp, agino) < be32_to_cpu(agi->agi_length));
2082 be32_add_cpu(&agi->agi_count, -ilen);
2083 be32_add_cpu(&agi->agi_freecount, -(ilen - 1));
2112 be32_add_cpu(&agi->agi_freecount, 1);
2508 * Log specified fields for the ag hdr (inode section). The growth of the agi
2511 * of the hash table and its location in the middle of the agi.
2546 struct xfs_agi *agi = bp->b_addr;
2548 ASSERT(agi->agi_magicnum == cpu_to_be32(XFS_AGI_MAGIC));
2553 * region and log the agi buffer. This only logs up through
2579 struct xfs_agi *agi = bp->b_addr;
2581 uint32_t agi_seqno = be32_to_cpu(agi->agi_seqno);
2582 uint32_t agi_length = be32_to_cpu(agi->agi_length);
2586 if (!uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid))
2588 if (!xfs_log_check_lsn(mp, be64_to_cpu(agi->agi_lsn)))
2593 * Validate the magic number of the agi block.
2595 if (!xfs_verify_magic(bp, agi->agi_magicnum))
2597 if (!XFS_AGI_GOOD_VERSION(be32_to_cpu(agi->agi_versionnum)))
2604 if (be32_to_cpu(agi->agi_level) < 1 ||
2605 be32_to_cpu(agi->agi_level) > M_IGEO(mp)->inobt_maxlevels)
2609 (be32_to_cpu(agi->agi_free_level) < 1 ||
2610 be32_to_cpu(agi->agi_free_level) > M_IGEO(mp)->inobt_maxlevels))
2614 if (agi->agi_unlinked[i] == cpu_to_be32(NULLAGINO))
2616 if (!xfs_verify_ino(mp, be32_to_cpu(agi->agi_unlinked[i])))
2646 struct xfs_agi *agi = bp->b_addr;
2659 agi->agi_lsn = cpu_to_be64(bip->bli_item.li_lsn);
2700 * Read in the agi and initialise the per-ag data. If the caller supplies a
2710 struct xfs_agi *agi;
2719 agi = agibp->b_addr;
2721 pag->pagi_freecount = be32_to_cpu(agi->agi_freecount);
2722 pag->pagi_count = be32_to_cpu(agi->agi_count);
2730 ASSERT(pag->pagi_freecount == be32_to_cpu(agi->agi_freecount) ||