Lines Matching refs:mp
51 struct xfs_mount *mp) in xfs_ialloc_cluster_alignment() argument
53 if (xfs_sb_version_hasalign(&mp->m_sb) && in xfs_ialloc_cluster_alignment()
54 mp->m_sb.sb_inoalignmt >= xfs_icluster_size_fsb(mp)) in xfs_ialloc_cluster_alignment()
55 return mp->m_sb.sb_inoalignmt; in xfs_ialloc_cluster_alignment()
104 struct xfs_mount *mp, in xfs_inobt_btrec_to_irec() argument
109 if (xfs_sb_version_hassparseinodes(&mp->m_sb)) { in xfs_inobt_btrec_to_irec()
171 struct xfs_mount *mp, in xfs_inobt_insert() argument
185 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert()
262 struct xfs_mount *mp, in xfs_ialloc_inode_init() argument
284 blks_per_cluster = xfs_icluster_size_fsb(mp); in xfs_ialloc_inode_init()
285 inodes_per_cluster = blks_per_cluster << mp->m_sb.sb_inopblog; in xfs_ialloc_inode_init()
307 if (xfs_sb_version_hascrc(&mp->m_sb)) { in xfs_ialloc_inode_init()
309 ino = XFS_AGINO_TO_INO(mp, agno, in xfs_ialloc_inode_init()
310 XFS_OFFBNO_TO_AGINO(mp, agbno, 0)); in xfs_ialloc_inode_init()
322 mp->m_sb.sb_inodesize, length, gen); in xfs_ialloc_inode_init()
330 d = XFS_AGB_TO_DADDR(mp, agno, agbno + (j * blks_per_cluster)); in xfs_ialloc_inode_init()
331 fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_ialloc_inode_init()
332 mp->m_bsize * blks_per_cluster, in xfs_ialloc_inode_init()
341 int ioffset = i << mp->m_sb.sb_inodelog; in xfs_ialloc_inode_init()
344 free = xfs_make_iptr(mp, fbuf, i); in xfs_ialloc_inode_init()
354 &mp->m_sb.sb_meta_uuid); in xfs_ialloc_inode_init()
355 xfs_dinode_calc_crc(mp, free); in xfs_ialloc_inode_init()
416 struct xfs_mount *mp, in xfs_align_sparse_ino() argument
424 agbno = XFS_AGINO_TO_AGBNO(mp, *startino); in xfs_align_sparse_ino()
425 mod = agbno % mp->m_sb.sb_inoalignmt; in xfs_align_sparse_ino()
430 offset = mod << mp->m_sb.sb_inopblog; in xfs_align_sparse_ino()
520 struct xfs_mount *mp, in xfs_inobt_insert_sprec() argument
534 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert_sprec()
547 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error); in xfs_inobt_insert_sprec()
560 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error); in xfs_inobt_insert_sprec()
561 XFS_WANT_CORRUPTED_GOTO(mp, in xfs_inobt_insert_sprec()
569 XFS_WANT_CORRUPTED_GOTO(mp, __xfs_inobt_can_merge(nrec, &rec), in xfs_inobt_insert_sprec()
572 trace_xfs_irec_merge_pre(mp, agno, rec.ir_startino, in xfs_inobt_insert_sprec()
579 trace_xfs_irec_merge_post(mp, agno, nrec->ir_startino, in xfs_inobt_insert_sprec()
582 error = xfs_inobt_rec_check_count(mp, nrec); in xfs_inobt_insert_sprec()
624 args.mp = tp->t_mountp; in xfs_ialloc_ag_alloc()
631 args.mp->m_ialloc_min_blks < args.mp->m_ialloc_blks) in xfs_ialloc_ag_alloc()
639 newlen = args.mp->m_ialloc_inos; in xfs_ialloc_ag_alloc()
640 if (args.mp->m_maxicount && in xfs_ialloc_ag_alloc()
641 percpu_counter_read_positive(&args.mp->m_icount) + newlen > in xfs_ialloc_ag_alloc()
642 args.mp->m_maxicount) in xfs_ialloc_ag_alloc()
644 args.minlen = args.maxlen = args.mp->m_ialloc_blks; in xfs_ialloc_ag_alloc()
653 args.agbno = XFS_AGINO_TO_AGBNO(args.mp, newino) + in xfs_ialloc_ag_alloc()
654 args.mp->m_ialloc_blks; in xfs_ialloc_ag_alloc()
659 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
677 args.minalignslop = xfs_ialloc_cluster_alignment(args.mp) - 1; in xfs_ialloc_ag_alloc()
680 args.minleft = args.mp->m_in_maxlevels - 1; in xfs_ialloc_ag_alloc()
707 if (args.mp->m_sinoalign) { in xfs_ialloc_ag_alloc()
708 ASSERT(!(args.mp->m_flags & XFS_MOUNT_NOALIGN)); in xfs_ialloc_ag_alloc()
709 args.alignment = args.mp->m_dalign; in xfs_ialloc_ag_alloc()
712 args.alignment = xfs_ialloc_cluster_alignment(args.mp); in xfs_ialloc_ag_alloc()
719 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
728 args.minleft = args.mp->m_in_maxlevels - 1; in xfs_ialloc_ag_alloc()
740 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
741 args.alignment = xfs_ialloc_cluster_alignment(args.mp); in xfs_ialloc_ag_alloc()
750 if (xfs_sb_version_hassparseinodes(&args.mp->m_sb) && in xfs_ialloc_ag_alloc()
751 args.mp->m_ialloc_min_blks < args.mp->m_ialloc_blks && in xfs_ialloc_ag_alloc()
756 args.fsbno = XFS_AGB_TO_FSB(args.mp, agno, args.agbno); in xfs_ialloc_ag_alloc()
757 args.alignment = args.mp->m_sb.sb_spino_align; in xfs_ialloc_ag_alloc()
760 args.minlen = args.mp->m_ialloc_min_blks; in xfs_ialloc_ag_alloc()
773 args.min_agbno = args.mp->m_sb.sb_inoalignmt; in xfs_ialloc_ag_alloc()
774 args.max_agbno = round_down(args.mp->m_sb.sb_agblocks, in xfs_ialloc_ag_alloc()
775 args.mp->m_sb.sb_inoalignmt) - in xfs_ialloc_ag_alloc()
776 args.mp->m_ialloc_blks; in xfs_ialloc_ag_alloc()
782 newlen = args.len << args.mp->m_sb.sb_inopblog; in xfs_ialloc_ag_alloc()
802 error = xfs_ialloc_inode_init(args.mp, tp, NULL, newlen, agno, in xfs_ialloc_ag_alloc()
810 newino = XFS_OFFBNO_TO_AGINO(args.mp, args.agbno, 0); in xfs_ialloc_ag_alloc()
816 xfs_align_sparse_ino(args.mp, &newino, &allocmask); in xfs_ialloc_ag_alloc()
829 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, XFS_BTNUM_INO, in xfs_ialloc_ag_alloc()
832 xfs_alert(args.mp, in xfs_ialloc_ag_alloc()
834 XFS_AGINO_TO_INO(args.mp, agno, in xfs_ialloc_ag_alloc()
837 xfs_force_shutdown(args.mp, SHUTDOWN_CORRUPT_INCORE); in xfs_ialloc_ag_alloc()
853 if (xfs_sb_version_hasfinobt(&args.mp->m_sb)) { in xfs_ialloc_ag_alloc()
854 error = xfs_inobt_insert_sprec(args.mp, tp, agbp, in xfs_ialloc_ag_alloc()
862 error = xfs_inobt_insert(args.mp, tp, agbp, newino, newlen, in xfs_ialloc_ag_alloc()
867 if (xfs_sb_version_hasfinobt(&args.mp->m_sb)) { in xfs_ialloc_ag_alloc()
868 error = xfs_inobt_insert(args.mp, tp, agbp, newino, in xfs_ialloc_ag_alloc()
880 pag = xfs_perag_get(args.mp, agno); in xfs_ialloc_ag_alloc()
901 xfs_mount_t *mp) in xfs_ialloc_next_ag() argument
905 spin_lock(&mp->m_agirotor_lock); in xfs_ialloc_next_ag()
906 agno = mp->m_agirotor; in xfs_ialloc_next_ag()
907 if (++mp->m_agirotor >= mp->m_maxagi) in xfs_ialloc_next_ag()
908 mp->m_agirotor = 0; in xfs_ialloc_next_ag()
909 spin_unlock(&mp->m_agirotor_lock); in xfs_ialloc_next_ag()
930 xfs_mount_t *mp; /* mount point structure */ in xfs_ialloc_ag_select() local
941 mp = tp->t_mountp; in xfs_ialloc_ag_select()
942 agcount = mp->m_maxagi; in xfs_ialloc_ag_select()
944 pagno = xfs_ialloc_next_ag(mp); in xfs_ialloc_ag_select()
946 pagno = XFS_INO_TO_AGNO(mp, parent); in xfs_ialloc_ag_select()
963 pag = xfs_perag_get(mp, agno); in xfs_ialloc_ag_select()
965 xfs_ialloc_next_ag(mp); in xfs_ialloc_ag_select()
970 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_ialloc_ag_select()
984 error = xfs_alloc_pagf_init(mp, tp, agno, flags); in xfs_ialloc_ag_select()
1005 ineed = mp->m_ialloc_min_blks; in xfs_ialloc_ag_select()
1007 ineed += xfs_ialloc_cluster_alignment(mp); in xfs_ialloc_ag_select()
1023 if (XFS_FORCED_SHUTDOWN(mp)) in xfs_ialloc_ag_select()
1122 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc_ag_inobt() local
1125 xfs_agnumber_t pagno = XFS_INO_TO_AGNO(mp, parent); in xfs_dialloc_ag_inobt()
1126 xfs_agino_t pagino = XFS_INO_TO_AGINO(mp, parent); in xfs_dialloc_ag_inobt()
1136 pag = xfs_perag_get(mp, agno); in xfs_dialloc_ag_inobt()
1143 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag_inobt()
1165 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0); in xfs_dialloc_ag_inobt()
1170 XFS_WANT_CORRUPTED_GOTO(mp, j == 1, error0); in xfs_dialloc_ag_inobt()
1325 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0); in xfs_dialloc_ag_inobt()
1331 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0); in xfs_dialloc_ag_inobt()
1337 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0); in xfs_dialloc_ag_inobt()
1344 ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) % in xfs_dialloc_ag_inobt()
1346 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); in xfs_dialloc_ag_inobt()
1546 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc_ag() local
1549 xfs_agnumber_t pagno = XFS_INO_TO_AGNO(mp, parent); in xfs_dialloc_ag()
1550 xfs_agino_t pagino = XFS_INO_TO_AGINO(mp, parent); in xfs_dialloc_ag()
1560 if (!xfs_sb_version_hasfinobt(&mp->m_sb)) in xfs_dialloc_ag()
1563 pag = xfs_perag_get(mp, agno); in xfs_dialloc_ag()
1572 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_dialloc_ag()
1593 ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) % in xfs_dialloc_ag()
1595 ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino + offset); in xfs_dialloc_ag()
1615 icur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_dialloc_ag()
1686 struct xfs_mount *mp = tp->t_mountp; in xfs_dialloc() local
1723 if (mp->m_maxicount && in xfs_dialloc()
1724 percpu_counter_read_positive(&mp->m_icount) + mp->m_ialloc_inos in xfs_dialloc()
1725 > mp->m_maxicount) { in xfs_dialloc()
1737 pag = xfs_perag_get(mp, agno); in xfs_dialloc()
1739 xfs_ialloc_next_ag(mp); in xfs_dialloc()
1744 error = xfs_ialloc_pagi_init(mp, tp, agno); in xfs_dialloc()
1759 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_dialloc()
1803 if (++agno == mp->m_sb.sb_agcount) in xfs_dialloc()
1826 struct xfs_mount *mp, in xfs_difree_inode_chunk() argument
1831 xfs_agblock_t sagbno = XFS_AGINO_TO_AGBNO(mp, rec->ir_startino); in xfs_difree_inode_chunk()
1842 xfs_bmap_add_free(mp, dfops, XFS_AGB_TO_FSB(mp, agno, sagbno), in xfs_difree_inode_chunk()
1843 mp->m_ialloc_blks, &oinfo); in xfs_difree_inode_chunk()
1879 mp->m_sb.sb_inopblock; in xfs_difree_inode_chunk()
1882 mp->m_sb.sb_inopblock; in xfs_difree_inode_chunk()
1884 ASSERT(agbno % mp->m_sb.sb_spino_align == 0); in xfs_difree_inode_chunk()
1885 ASSERT(contigblk % mp->m_sb.sb_spino_align == 0); in xfs_difree_inode_chunk()
1886 xfs_bmap_add_free(mp, dfops, XFS_AGB_TO_FSB(mp, agno, agbno), in xfs_difree_inode_chunk()
1899 struct xfs_mount *mp, in xfs_difree_inobt() argument
1918 ASSERT(XFS_AGINO_TO_AGBNO(mp, agino) < be32_to_cpu(agi->agi_length)); in xfs_difree_inobt()
1923 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_difree_inobt()
1933 xfs_warn(mp, "%s: xfs_inobt_lookup() returned error %d.", in xfs_difree_inobt()
1937 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0); in xfs_difree_inobt()
1940 xfs_warn(mp, "%s: xfs_inobt_get_rec() returned error %d.", in xfs_difree_inobt()
1944 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error0); in xfs_difree_inobt()
1962 if (!(mp->m_flags & XFS_MOUNT_IKEEP) && in xfs_difree_inobt()
1964 mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK) { in xfs_difree_inobt()
1966 xic->first_ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino); in xfs_difree_inobt()
1978 pag = xfs_perag_get(mp, agno); in xfs_difree_inobt()
1985 xfs_warn(mp, "%s: xfs_btree_delete returned error %d.", in xfs_difree_inobt()
1990 xfs_difree_inode_chunk(mp, agno, &rec, dfops); in xfs_difree_inobt()
1996 xfs_warn(mp, "%s: xfs_inobt_update returned error %d.", in xfs_difree_inobt()
2006 pag = xfs_perag_get(mp, agno); in xfs_difree_inobt()
2030 struct xfs_mount *mp, in xfs_difree_finobt() argument
2044 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_FINO); in xfs_difree_finobt()
2055 XFS_WANT_CORRUPTED_GOTO(mp, ibtrec->ir_freecount == 1, error); in xfs_difree_finobt()
2078 XFS_WANT_CORRUPTED_GOTO(mp, i == 1, error); in xfs_difree_finobt()
2083 XFS_WANT_CORRUPTED_GOTO(mp, (rec.ir_free == ibtrec->ir_free) && in xfs_difree_finobt()
2100 mp->m_sb.sb_inopblock <= XFS_INODES_PER_CHUNK && in xfs_difree_finobt()
2101 !(mp->m_flags & XFS_MOUNT_IKEEP)) { in xfs_difree_finobt()
2144 struct xfs_mount *mp; /* mount structure for filesystem */ in xfs_difree() local
2147 mp = tp->t_mountp; in xfs_difree()
2152 agno = XFS_INO_TO_AGNO(mp, inode); in xfs_difree()
2153 if (agno >= mp->m_sb.sb_agcount) { in xfs_difree()
2154 xfs_warn(mp, "%s: agno >= mp->m_sb.sb_agcount (%d >= %d).", in xfs_difree()
2155 __func__, agno, mp->m_sb.sb_agcount); in xfs_difree()
2159 agino = XFS_INO_TO_AGINO(mp, inode); in xfs_difree()
2160 if (inode != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_difree()
2161 xfs_warn(mp, "%s: inode != XFS_AGINO_TO_INO() (%llu != %llu).", in xfs_difree()
2163 (unsigned long long)XFS_AGINO_TO_INO(mp, agno, agino)); in xfs_difree()
2167 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xfs_difree()
2168 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_difree()
2169 xfs_warn(mp, "%s: agbno >= mp->m_sb.sb_agblocks (%d >= %d).", in xfs_difree()
2170 __func__, agbno, mp->m_sb.sb_agblocks); in xfs_difree()
2177 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_difree()
2179 xfs_warn(mp, "%s: xfs_ialloc_read_agi() returned error %d.", in xfs_difree()
2187 error = xfs_difree_inobt(mp, tp, agbp, agino, dfops, xic, &rec); in xfs_difree()
2194 if (xfs_sb_version_hasfinobt(&mp->m_sb)) { in xfs_difree()
2195 error = xfs_difree_finobt(mp, tp, agbp, agino, &rec); in xfs_difree()
2208 struct xfs_mount *mp, in xfs_imap_lookup() argument
2223 error = xfs_ialloc_read_agi(mp, tp, agno, &agbp); in xfs_imap_lookup()
2225 xfs_alert(mp, in xfs_imap_lookup()
2237 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_INO); in xfs_imap_lookup()
2253 rec.ir_startino + mp->m_ialloc_inos <= agino) in xfs_imap_lookup()
2261 *chunk_agbno = XFS_AGINO_TO_AGBNO(mp, rec.ir_startino); in xfs_imap_lookup()
2271 xfs_mount_t *mp, /* file system mount structure */ in xfs_imap() argument
2292 agno = XFS_INO_TO_AGNO(mp, ino); in xfs_imap()
2293 agino = XFS_INO_TO_AGINO(mp, ino); in xfs_imap()
2294 agbno = XFS_AGINO_TO_AGBNO(mp, agino); in xfs_imap()
2295 if (agno >= mp->m_sb.sb_agcount || agbno >= mp->m_sb.sb_agblocks || in xfs_imap()
2296 ino != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_imap()
2304 if (agno >= mp->m_sb.sb_agcount) { in xfs_imap()
2305 xfs_alert(mp, in xfs_imap()
2307 __func__, agno, mp->m_sb.sb_agcount); in xfs_imap()
2309 if (agbno >= mp->m_sb.sb_agblocks) { in xfs_imap()
2310 xfs_alert(mp, in xfs_imap()
2313 (unsigned long)mp->m_sb.sb_agblocks); in xfs_imap()
2315 if (ino != XFS_AGINO_TO_INO(mp, agno, agino)) { in xfs_imap()
2316 xfs_alert(mp, in xfs_imap()
2319 XFS_AGINO_TO_INO(mp, agno, agino)); in xfs_imap()
2326 blks_per_cluster = xfs_icluster_size_fsb(mp); in xfs_imap()
2336 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
2348 offset = XFS_INO_TO_OFFSET(mp, ino); in xfs_imap()
2349 ASSERT(offset < mp->m_sb.sb_inopblock); in xfs_imap()
2351 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_imap()
2352 imap->im_len = XFS_FSB_TO_BB(mp, 1); in xfs_imap()
2354 mp->m_sb.sb_inodelog); in xfs_imap()
2363 if (mp->m_inoalign_mask) { in xfs_imap()
2364 offset_agbno = agbno & mp->m_inoalign_mask; in xfs_imap()
2367 error = xfs_imap_lookup(mp, tp, agno, agino, agbno, in xfs_imap()
2377 offset = ((agbno - cluster_agbno) * mp->m_sb.sb_inopblock) + in xfs_imap()
2378 XFS_INO_TO_OFFSET(mp, ino); in xfs_imap()
2380 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, cluster_agbno); in xfs_imap()
2381 imap->im_len = XFS_FSB_TO_BB(mp, blks_per_cluster); in xfs_imap()
2382 imap->im_boffset = (unsigned short)(offset << mp->m_sb.sb_inodelog); in xfs_imap()
2391 XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)) { in xfs_imap()
2392 xfs_alert(mp, in xfs_imap()
2396 XFS_FSB_TO_BB(mp, mp->m_sb.sb_dblocks)); in xfs_imap()
2407 xfs_mount_t *mp) /* file system mount structure */ in xfs_ialloc_compute_maxlevels() argument
2411 inodes = (1LL << XFS_INO_AGINO_BITS(mp)) >> XFS_INODES_PER_CHUNK_LOG; in xfs_ialloc_compute_maxlevels()
2412 mp->m_in_maxlevels = xfs_btree_compute_maxlevels(mp, mp->m_inobt_mnr, in xfs_ialloc_compute_maxlevels()
2501 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agi_verify() local
2504 if (xfs_sb_version_hascrc(&mp->m_sb)) { in xfs_agi_verify()
2505 if (!uuid_equal(&agi->agi_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_agi_verify()
2507 if (!xfs_log_check_lsn(mp, in xfs_agi_verify()
2524 if (xfs_sb_version_hasfinobt(&mp->m_sb) && in xfs_agi_verify()
2546 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agi_read_verify() local
2548 if (xfs_sb_version_hascrc(&mp->m_sb) && in xfs_agi_read_verify()
2551 else if (XFS_TEST_ERROR(!xfs_agi_verify(bp), mp, in xfs_agi_read_verify()
2563 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agi_write_verify() local
2572 if (!xfs_sb_version_hascrc(&mp->m_sb)) in xfs_agi_write_verify()
2591 struct xfs_mount *mp, /* file system mount structure */ in xfs_read_agi() argument
2598 trace_xfs_read_agi(mp, agno); in xfs_read_agi()
2601 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_read_agi()
2602 XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)), in xfs_read_agi()
2603 XFS_FSS_TO_BB(mp, 1), 0, bpp, &xfs_agi_buf_ops); in xfs_read_agi()
2615 struct xfs_mount *mp, /* file system mount structure */ in xfs_ialloc_read_agi() argument
2624 trace_xfs_ialloc_read_agi(mp, agno); in xfs_ialloc_read_agi()
2626 error = xfs_read_agi(mp, tp, agno, bpp); in xfs_ialloc_read_agi()
2631 pag = xfs_perag_get(mp, agno); in xfs_ialloc_read_agi()
2643 XFS_FORCED_SHUTDOWN(mp)); in xfs_ialloc_read_agi()
2653 xfs_mount_t *mp, /* file system mount structure */ in xfs_ialloc_pagi_init() argument
2660 error = xfs_ialloc_read_agi(mp, tp, agno, &bp); in xfs_ialloc_pagi_init()