Lines Matching defs:priority
763 struct shrinker *shrinker, int priority)
787 delta = freeable >> priority;
799 total_scan = nr >> priority;
804 freeable, delta, total_scan, priority);
861 struct mem_cgroup *memcg, int priority)
897 ret = do_shrink_slab(&sc, shrinker, priority);
916 ret = do_shrink_slab(&sc, shrinker, priority);
935 struct mem_cgroup *memcg, int priority)
946 * @priority: the reclaim priority
956 * @priority is sc->priority, we take the number of objects and >> by priority
963 int priority)
976 return shrink_slab_memcg(gfp_mask, nid, memcg, priority);
988 ret = do_shrink_slab(&sc, shrinker, priority);
2633 nr_scanned, nr_reclaimed, &stat, sc->priority, file);
2750 nr_deactivate, nr_rotated, sc->priority, file);
2931 if (file >> sc->priority && !(sc->may_deactivate & DEACTIVATE_FILE))
2973 anon >> sc->priority;
3020 if (!sc->priority && swappiness) {
3133 * sc->priority further than desirable.
3140 scan >>= sc->priority;
4530 return mem_cgroup_online(memcg) ? (total >> sc->priority) : total;
4567 if (!min_ttl || sc->order || sc->priority == DEF_PRIORITY)
5263 *nr_to_scan = total >> sc->priority;
5305 /* skip the aging path at the default priority */
5306 if (sc->priority == DEF_PRIORITY)
5402 shrink_slab(sc->gfp_mask, pgdat->node_id, memcg, sc->priority);
5534 int priority;
5538 if (sc->priority != DEF_PRIORITY || sc->nr_to_reclaim < MIN_LRU_BATCH)
5541 * Determine the initial priority based on
5542 * (total >> priority) * reclaimed_to_scanned_ratio = nr_to_reclaim,
5550 priority = fls_long(reclaimable) - 1 - fls_long(sc->nr_to_reclaim - 1);
5552 sc->priority = clamp(priority, 0, DEF_PRIORITY);
6304 sc->priority == DEF_PRIORITY);
6394 sc->priority < DEF_PRIORITY - 2))
6507 sc->priority);
6688 if (sc->priority == 1 && !sc->nr_reclaimed)
6839 int initial_priority = sc->priority;
6852 sc->priority);
6866 if (sc->priority < DEF_PRIORITY - 2)
6868 } while (--sc->priority >= 0);
6907 sc->priority = initial_priority;
6915 sc->priority = initial_priority;
7064 .priority = DEF_PRIORITY,
7071 * scan_control uses s8 fields for order, priority, and reclaim_idx.
7127 * NOTE: Although we can get the priority field, using it
7131 * the priority and make it zero.
7165 .priority = DEF_PRIORITY,
7335 * This is used to determine if the scanning priority needs to be raised.
7461 sc.priority = DEF_PRIORITY;
7512 /* Limit the priority of boosting to avoid reclaim writeback */
7513 if (nr_boost_reclaim && sc.priority == DEF_PRIORITY - 2)
7536 if (sc.priority < DEF_PRIORITY - 2)
7547 * There should be no need to raise the scanning priority if
7571 * Raise priority if scanning rate is too low or there was no
7586 sc.priority--;
7587 } while (sc.priority >= 1);
7892 .priority = DEF_PRIORITY,
8056 .priority = NODE_RECLAIM_PRIORITY,
8088 } while (sc.nr_reclaimed < nr_pages && --sc.priority >= 0);
8220 .priority = DEF_PRIORITY,