Lines Matching refs:grp_count
96 unsigned int grp_count; /* Number of discrete groups. */ member
139 while (mru->time_zero <= now - mru->grp_count * mru->grp_time) { in _xfs_mru_cache_migrate()
153 mru->lru_grp = (mru->lru_grp + 1) % mru->grp_count; in _xfs_mru_cache_migrate()
160 if (++migrated == mru->grp_count) { in _xfs_mru_cache_migrate()
168 for (grp = 0; grp < mru->grp_count; grp++) { in _xfs_mru_cache_migrate()
171 lru_list = mru->lists + ((mru->lru_grp + grp) % mru->grp_count); in _xfs_mru_cache_migrate()
174 (mru->grp_count + grp) * mru->grp_time; in _xfs_mru_cache_migrate()
207 mru->grp_count * mru->grp_time); in _xfs_mru_cache_list_insert()
211 grp = (mru->lru_grp + grp) % mru->grp_count; in _xfs_mru_cache_list_insert()
319 unsigned int grp_count, in xfs_mru_cache_create() argument
329 if (!mrup || !grp_count || !lifetime_ms || !free_func) in xfs_mru_cache_create()
332 if (!(grp_time = msecs_to_jiffies(lifetime_ms) / grp_count)) in xfs_mru_cache_create()
340 mru->grp_count = grp_count + 1; in xfs_mru_cache_create()
341 mru->lists = kzalloc(mru->grp_count * sizeof(*mru->lists), in xfs_mru_cache_create()
348 for (grp = 0; grp < mru->grp_count; grp++) in xfs_mru_cache_create()
394 _xfs_mru_cache_migrate(mru, jiffies + mru->grp_count * mru->grp_time); in xfs_mru_cache_flush()