Home
last modified time | relevance | path

Searched refs:mru (Results 1 – 3 of 3) sorted by relevance

/fs/xfs/
Dxfs_mru_cache.c127 struct xfs_mru_cache *mru, in _xfs_mru_cache_migrate() argument
135 if (!mru->time_zero) in _xfs_mru_cache_migrate()
139 while (mru->time_zero <= now - mru->grp_count * mru->grp_time) { in _xfs_mru_cache_migrate()
145 lru_list = mru->lists + mru->lru_grp; in _xfs_mru_cache_migrate()
147 list_splice_init(lru_list, mru->reap_list.prev); in _xfs_mru_cache_migrate()
153 mru->lru_grp = (mru->lru_grp + 1) % mru->grp_count; in _xfs_mru_cache_migrate()
154 mru->time_zero += mru->grp_time; in _xfs_mru_cache_migrate()
160 if (++migrated == mru->grp_count) { in _xfs_mru_cache_migrate()
161 mru->lru_grp = 0; in _xfs_mru_cache_migrate()
162 mru->time_zero = 0; in _xfs_mru_cache_migrate()
[all …]
Dxfs_filestream.c24 struct xfs_mru_cache_elem mru; member
81 struct xfs_mru_cache_elem *mru) in xfs_fstrm_free_func() argument
85 container_of(mru, struct xfs_fstrm_item, mru); in xfs_fstrm_free_func()
88 trace_xfs_filestream_free(mp, mru->key, item->ag); in xfs_fstrm_free_func()
225 err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru); in xfs_filestream_pick_ag()
278 struct xfs_mru_cache_elem *mru; in xfs_filestream_lookup_ag() local
286 mru = xfs_mru_cache_lookup(mp->m_filestream, pip->i_ino); in xfs_filestream_lookup_ag()
287 if (mru) { in xfs_filestream_lookup_ag()
288 ag = container_of(mru, struct xfs_fstrm_item, mru)->ag; in xfs_filestream_lookup_ag()
331 struct xfs_mru_cache_elem *mru; in xfs_filestream_new_ag() local
[all …]
Dxfs_mru_cache.h24 void xfs_mru_cache_destroy(struct xfs_mru_cache *mru);
25 int xfs_mru_cache_insert(struct xfs_mru_cache *mru, unsigned long key,
28 xfs_mru_cache_remove(struct xfs_mru_cache *mru, unsigned long key);
29 void xfs_mru_cache_delete(struct xfs_mru_cache *mru, unsigned long key);
31 xfs_mru_cache_lookup(struct xfs_mru_cache *mru, unsigned long key);
32 void xfs_mru_cache_done(struct xfs_mru_cache *mru);