Lines Matching refs:agno
125 xfs_agnumber_t agno = cur->bc_private.a.agno; in xfs_inobt_get_rec() local
136 if (!xfs_verify_agino(mp, agno, irec->ir_startino)) in xfs_inobt_get_rec()
157 cur->bc_btnum == XFS_BTNUM_INO ? "Used" : "Free", agno); in xfs_inobt_get_rec()
198 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert() local
203 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
284 xfs_agnumber_t agno, in xfs_ialloc_inode_init() argument
327 ino = XFS_AGINO_TO_INO(mp, agno, in xfs_ialloc_inode_init()
339 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
348 d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); in xfs_ialloc_inode_init()
547 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_inobt_insert_sprec() local
552 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec()
590 trace_xfs_irec_merge_pre(mp, agno, rec.ir_startino, in xfs_inobt_insert_sprec()
597 trace_xfs_irec_merge_post(mp, agno, nrec->ir_startino, in xfs_inobt_insert_sprec()
629 xfs_agnumber_t agno; in xfs_ialloc_ag_alloc() local
670 agno = be32_to_cpu(agi->agi_seqno); in xfs_ialloc_ag_alloc()
677 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
737 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
758 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
774 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
820 error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, agno, in xfs_ialloc_ag_alloc()
852 XFS_AGINO_TO_INO(args.mp, agno, in xfs_ialloc_ag_alloc()
898 pag = xfs_perag_get(args.mp, agno); in xfs_ialloc_ag_alloc()
922 xfs_agnumber_t agno; in xfs_ialloc_next_ag() local
925 agno = mp->m_agirotor; in xfs_ialloc_next_ag()
930 return agno; in xfs_ialloc_next_ag()
944 xfs_agnumber_t agno; /* current ag number */ in xfs_ialloc_ag_select() local
978 agno = pagno; in xfs_ialloc_ag_select()
981 pag = xfs_perag_get(mp, agno); in xfs_ialloc_ag_select()
988 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_ialloc_ag_select()
995 return agno; in xfs_ialloc_ag_select()
999 error = xfs_alloc_pagf_init(mp, tp, agno, flags); in xfs_ialloc_ag_select()
1030 return agno; in xfs_ialloc_ag_select()
1040 agno++; in xfs_ialloc_ag_select()
1041 if (agno >= agcount) in xfs_ialloc_ag_select()
1042 agno = 0; in xfs_ialloc_ag_select()
1043 if (agno == pagno) { in xfs_ialloc_ag_select()
1139 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_dialloc_ag_inobt() local
1151 pag = xfs_perag_get(mp, agno); in xfs_dialloc_ag_inobt()
1158 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag_inobt()
1173 if (pagno == agno) { in xfs_dialloc_ag_inobt()
1361 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); in xfs_dialloc_ag_inobt()
1563 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_dialloc_ag() local
1578 pag = xfs_perag_get(mp, agno); in xfs_dialloc_ag()
1587 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_dialloc_ag()
1598 if (agno == pagno) in xfs_dialloc_ag()
1610 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); in xfs_dialloc_ag()
1630 icur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag()
1702 xfs_agnumber_t agno; in xfs_dialloc() local
1750 agno = start_agno; in xfs_dialloc()
1752 pag = xfs_perag_get(mp, agno); in xfs_dialloc()
1759 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_dialloc()
1774 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_dialloc()
1818 if (++agno == mp->m_sb.sb_agcount) in xfs_dialloc()
1819 agno = 0; in xfs_dialloc()
1820 if (agno == start_agno) { in xfs_dialloc()
1842 xfs_agnumber_t agno, in xfs_difree_inode_chunk() argument
1858 xfs_bmap_add_free(tp, XFS_AGB_TO_FSB(mp, agno, sagbno), in xfs_difree_inode_chunk()
1902 xfs_bmap_add_free(tp, XFS_AGB_TO_FSB(mp, agno, agbno), in xfs_difree_inode_chunk()
1923 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_difree_inobt() local
1938 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_difree_inobt()
1981 xic->first_ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino); in xfs_difree_inobt()
1993 pag = xfs_perag_get(mp, agno); in xfs_difree_inobt()
2006 xfs_difree_inode_chunk(tp, agno, &rec); in xfs_difree_inobt()
2022 pag = xfs_perag_get(mp, agno); in xfs_difree_inobt()
2053 xfs_agnumber_t agno = be32_to_cpu(agi->agi_seqno); in xfs_difree_finobt() local
2060 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_difree_finobt()
2157 xfs_agnumber_t agno; /* allocation group number */ in xfs_difree() local
2167 agno = XFS_INO_TO_AGNO(mp, inode); in xfs_difree()
2168 if (agno >= mp->m_sb.sb_agcount) { in xfs_difree()
2170 __func__, agno, mp->m_sb.sb_agcount); in xfs_difree()
2175 if (inode != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_difree()
2178 (unsigned long long)XFS_AGINO_TO_INO(mp, agno, agino)); in xfs_difree()
2192 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_difree()
2225 xfs_agnumber_t agno, in xfs_imap_lookup() argument
2238 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_imap_lookup()
2242 __func__, error, agno); in xfs_imap_lookup()
2252 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_imap_lookup()
2294 xfs_agnumber_t agno; /* allocation group number */ in xfs_imap() local
2307 agno = XFS_INO_TO_AGNO(mp, ino); in xfs_imap()
2310 if (agno >= mp->m_sb.sb_agcount || agbno >= mp->m_sb.sb_agblocks || in xfs_imap()
2311 ino != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_imap()
2319 if (agno >= mp->m_sb.sb_agcount) { in xfs_imap()
2322 __func__, agno, mp->m_sb.sb_agcount); in xfs_imap()
2330 if (ino != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_imap()
2334 XFS_AGINO_TO_INO(mp, agno, agino)); in xfs_imap()
2351 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
2366 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_imap()
2382 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
2395 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, cluster_agbno); in xfs_imap()
2603 xfs_agnumber_t agno, /* allocation group number */ in xfs_read_agi() argument
2608 trace_xfs_read_agi(mp, agno); in xfs_read_agi()
2610 ASSERT(agno != NULLAGNUMBER); in xfs_read_agi()
2612 XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)), in xfs_read_agi()
2627 xfs_agnumber_t agno, /* allocation group number */ in xfs_ialloc_read_agi() argument
2634 trace_xfs_ialloc_read_agi(mp, agno); in xfs_ialloc_read_agi()
2636 error = xfs_read_agi(mp, tp, agno, bpp); in xfs_ialloc_read_agi()
2641 pag = xfs_perag_get(mp, agno); in xfs_ialloc_read_agi()
2665 xfs_agnumber_t agno) /* allocation group number */ in xfs_ialloc_pagi_init() argument
2670 error = xfs_ialloc_read_agi(mp, tp, agno, &bp); in xfs_ialloc_pagi_init()