• Home
  • Raw
  • Download

Lines Matching refs:mp

85 	xfs_mount_t	*mp,  in xfs_filestream_peek_ag()  argument
91 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag()
99 xfs_mount_t *mp, in xfs_filestream_get_ag() argument
105 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag()
113 xfs_mount_t *mp, in xfs_filestream_put_ag() argument
118 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
149 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_pick_ag() local
159 minfree = mp->m_sb.sb_agblocks / 50; in xfs_filestream_pick_ag()
170 pag = xfs_perag_get(mp, ag); in xfs_filestream_pick_ag()
173 err = xfs_alloc_pagf_init(mp, NULL, ag, trylock); in xfs_filestream_pick_ag()
196 if (xfs_filestream_get_ag(mp, ag) > 1) { in xfs_filestream_pick_ag()
197 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
201 longest = xfs_alloc_longest_free_extent(mp, pag, in xfs_filestream_pick_ag()
202 xfs_alloc_min_freelist(mp, pag), in xfs_filestream_pick_ag()
217 xfs_filestream_put_ag(mp, ag); in xfs_filestream_pick_ag()
221 if (++ag >= mp->m_sb.sb_agcount) in xfs_filestream_pick_ag()
245 xfs_filestream_get_ag(mp, max_ag); in xfs_filestream_pick_ag()
270 err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru); in xfs_filestream_pick_ag()
282 xfs_filestream_put_ag(mp, *agp); in xfs_filestream_pick_ag()
320 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_lookup_ag() local
331 mru = xfs_mru_cache_lookup(mp->m_filestream, pip->i_ino); in xfs_filestream_lookup_ag()
334 xfs_mru_cache_done(mp->m_filestream); in xfs_filestream_lookup_ag()
344 if (mp->m_flags & XFS_MOUNT_32BITINODES) { in xfs_filestream_lookup_ag()
346 startag = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; in xfs_filestream_lookup_ag()
347 mp->m_agfrotor = (mp->m_agfrotor + 1) % in xfs_filestream_lookup_ag()
348 (mp->m_sb.sb_agcount * rotorstep); in xfs_filestream_lookup_ag()
350 startag = XFS_INO_TO_AGNO(mp, pip->i_ino); in xfs_filestream_lookup_ag()
371 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_new_ag() local
384 mru = xfs_mru_cache_remove(mp->m_filestream, pip->i_ino); in xfs_filestream_new_ag()
388 startag = (item->ag + 1) % mp->m_sb.sb_agcount; in xfs_filestream_new_ag()
420 xfs_mount_t *mp) in xfs_filestream_mount() argument
429 return xfs_mru_cache_create(&mp->m_filestream, xfs_fstrm_centisecs * 10, in xfs_filestream_mount()
435 xfs_mount_t *mp) in xfs_filestream_unmount() argument
437 xfs_mru_cache_destroy(mp->m_filestream); in xfs_filestream_unmount()