Lines Matching defs:agi

641 	struct xfs_agi		*agi;
683 agi = agbp->b_addr;
684 newino = be32_to_cpu(agi->agi_newino);
690 (args.agbno < be32_to_cpu(agi->agi_length)))) {
756 be32_to_cpu(agi->agi_root)));
769 be32_to_cpu(agi->agi_root)));
805 be32_to_cpu(agi->agi_root)));
903 be32_add_cpu(&agi->agi_count, newlen);
904 be32_add_cpu(&agi->agi_freecount, newlen);
907 agi->agi_newino = cpu_to_be32(newino);
1012 struct xfs_agi *agi = agbp->b_addr;
1034 pagino = be32_to_cpu(agi->agi_newino);
1189 if (agi->agi_newino != cpu_to_be32(NULLAGINO)) {
1190 error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino),
1252 be32_add_cpu(&agi->agi_freecount, -1);
1365 struct xfs_agi *agi,
1372 if (agi->agi_newino != cpu_to_be32(NULLAGINO)) {
1373 error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino),
1460 struct xfs_agi *agi = agbp->b_addr;
1479 pagino = be32_to_cpu(agi->agi_newino);
1490 * not, consider the agi hint or find the first free inode in the AG.
1495 error = xfs_dialloc_ag_finobt_newino(agi, cur, &rec);
1520 * agi and superblock yet, so we can create an inobt cursor and validate
1538 be32_add_cpu(&agi->agi_freecount, -1);
1768 * ok_alloc so we scan all available agi structures for a free
1926 struct xfs_agi *agi = agbp->b_addr;
1934 ASSERT(agi->agi_magicnum == cpu_to_be32(XFS_AGI_MAGIC));
1935 ASSERT(XFS_AGINO_TO_AGBNO(mp, agino) < be32_to_cpu(agi->agi_length));
1998 be32_add_cpu(&agi->agi_count, -ilen);
1999 be32_add_cpu(&agi->agi_freecount, -(ilen - 1));
2028 be32_add_cpu(&agi->agi_freecount, 1);
2421 * Log specified fields for the ag hdr (inode section). The growth of the agi
2424 * of the hash table and its location in the middle of the agi.
2459 struct xfs_agi *agi = bp->b_addr;
2461 ASSERT(agi->agi_magicnum == cpu_to_be32(XFS_AGI_MAGIC));
2466 * region and log the agi buffer. This only logs up through
2492 struct xfs_agi *agi = bp->b_addr;
2494 uint32_t agi_seqno = be32_to_cpu(agi->agi_seqno);
2495 uint32_t agi_length = be32_to_cpu(agi->agi_length);
2499 if (!uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid))
2501 if (!xfs_log_check_lsn(mp, be64_to_cpu(agi->agi_lsn)))
2506 * Validate the magic number of the agi block.
2508 if (!xfs_verify_magic(bp, agi->agi_magicnum))
2510 if (!XFS_AGI_GOOD_VERSION(be32_to_cpu(agi->agi_versionnum)))
2517 if (be32_to_cpu(agi->agi_level) < 1 ||
2518 be32_to_cpu(agi->agi_level) > M_IGEO(mp)->inobt_maxlevels)
2522 (be32_to_cpu(agi->agi_free_level) < 1 ||
2523 be32_to_cpu(agi->agi_free_level) > M_IGEO(mp)->inobt_maxlevels))
2527 if (agi->agi_unlinked[i] == cpu_to_be32(NULLAGINO))
2529 if (!xfs_verify_ino(mp, be32_to_cpu(agi->agi_unlinked[i])))
2559 struct xfs_agi *agi = bp->b_addr;
2572 agi->agi_lsn = cpu_to_be64(bip->bli_item.li_lsn);
2611 * Read in the agi and initialise the per-ag data. If the caller supplies a
2621 struct xfs_agi *agi;
2630 agi = agibp->b_addr;
2632 pag->pagi_freecount = be32_to_cpu(agi->agi_freecount);
2633 pag->pagi_count = be32_to_cpu(agi->agi_count);
2641 ASSERT(pag->pagi_freecount == be32_to_cpu(agi->agi_freecount) ||