Lines Matching refs:mp

83 	xfs_mount_t	*mp,  in xfs_filestream_peek_ag()  argument
89 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag()
97 xfs_mount_t *mp, in xfs_filestream_get_ag() argument
103 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag()
111 xfs_mount_t *mp, in xfs_filestream_put_ag() argument
116 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
147 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_pick_ag() local
157 minfree = mp->m_sb.sb_agblocks / 50; in xfs_filestream_pick_ag()
168 pag = xfs_perag_get(mp, ag); in xfs_filestream_pick_ag()
171 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock); in xfs_filestream_pick_ag()
194 if (xfs_filestream_get_ag(mp, ag) > 1) { in xfs_filestream_pick_ag()
195 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
199 longest = xfs_alloc_longest_free_extent(mp, pag); in xfs_filestream_pick_ag()
213 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
217 if (++ag >= mp->m_sb.sb_agcount) in xfs_filestream_pick_ag()
241 xfs_filestream_get_ag(mp, max_ag); in xfs_filestream_pick_ag()
266 err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru); in xfs_filestream_pick_ag()
278 xfs_filestream_put_ag(mp, *agp); in xfs_filestream_pick_ag()
316 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_lookup_ag() local
327 mru = xfs_mru_cache_lookup(mp->m_filestream, pip->i_ino); in xfs_filestream_lookup_ag()
330 xfs_mru_cache_done(mp->m_filestream); in xfs_filestream_lookup_ag()
340 if (mp->m_flags & XFS_MOUNT_32BITINODES) { in xfs_filestream_lookup_ag()
342 startag = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_lookup_ag()
343 mp->m_agfrotor = (mp->m_agfrotor + 1) % in xfs_filestream_lookup_ag()
344 (mp->m_sb.sb_agcount * rotorstep); in xfs_filestream_lookup_ag()
346 startag = XFS_INO_TO_AGNO(mp, pip->i_ino); in xfs_filestream_lookup_ag()
367 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_new_ag() local
379 mru = xfs_mru_cache_remove(mp->m_filestream, pip->i_ino); in xfs_filestream_new_ag()
383 startag = (item->ag + 1) % mp->m_sb.sb_agcount; in xfs_filestream_new_ag()
413 xfs_mount_t *mp) in xfs_filestream_mount() argument
422 return xfs_mru_cache_create(&mp->m_filestream, xfs_fstrm_centisecs * 10, in xfs_filestream_mount()
428 xfs_mount_t *mp) in xfs_filestream_unmount() argument
430 xfs_mru_cache_destroy(mp->m_filestream); in xfs_filestream_unmount()