Lines Matching refs:fullness
154 * The number of fullness groups is not random. It allows us to keep
162 /* NOTE: 8 more fullness groups here */
169 /* NOTE: stats for 12 fullness groups here: from inuse 0 to 100 */
247 unsigned int fullness:FULLNESS_BITS;
255 struct list_head list; /* fullness list */
481 int *fullness)
485 *fullness = zspage->fullness;
497 int fullness)
500 zspage->fullness = fullness;
661 * depending on their usage ratio. This function returns fullness
680 * which is wrong as it belongs in ZS_INUSE_RATIO_10 fullness group.
693 int fullness)
695 class_stat_inc(class, fullness, 1);
696 list_add(&zspage->list, &class->fullness_list[fullness]);
705 int fullness)
707 VM_BUG_ON(list_empty(&class->fullness_list[fullness]));
710 class_stat_dec(class, fullness, 1);
714 * Each size class maintains zspages in different fullness groups depending
716 * objects, the fullness status of the page can change, for instance, from
719 * accordingly moves the page from the list of the old fullness group to that
720 * of the new fullness group.
1383 /* Now move the zspage to another fullness group, if required */
1451 int fullness;
1469 fullness = fix_fullness_group(class, zspage);
1470 if (fullness == ZS_INUSE_RATIO_0)
1649 * putback_zspage - add @zspage into right class's fullness list
1653 * Return @zspage's fullness status
1657 int fullness;
1659 fullness = get_fullness_group(class, zspage);
1660 insert_zspage(class, zspage, fullness);
1661 set_zspage_mapping(zspage, class->index, fullness);
1663 return fullness;
1908 int fullness;
1929 get_zspage_mapping(zspage, &class_idx, &fullness);
1930 VM_BUG_ON(fullness != ZS_INUSE_RATIO_0);
2199 int fullness;
2254 fullness = ZS_INUSE_RATIO_0;
2255 while (fullness < NR_FULLNESS_GROUPS) {
2256 INIT_LIST_HEAD(&class->fullness_list[fullness]);
2257 fullness++;
2304 pr_err("Class-%d fullness group %d is not empty\n",