Lines Matching refs:priority

148 	/* Scan (total_size >> priority) pages at once */
149 s8 priority;
1995 nr_scanned, nr_reclaimed, &stat, sc->priority, file);
2108 nr_deactivate, nr_rotated, sc->priority, file);
2296 if (file >> sc->priority && !(sc->may_deactivate & DEACTIVATE_FILE) &&
2339 anon >> sc->priority;
2386 if (!sc->priority && swappiness) {
2499 * sc->priority further than desirable.
2506 scan >>= sc->priority;
3925 return mem_cgroup_online(memcg) ? (total >> sc->priority) : total;
3962 if (!min_ttl || sc->order || sc->priority == DEF_PRIORITY)
4556 scanned, reclaimed, &stat, sc->priority,
4697 /* try to get away with not aging at the default priority */
4698 if (!success || sc->priority == DEF_PRIORITY)
4699 return nr_to_scan >> sc->priority;
4790 shrink_slab(sc->gfp_mask, pgdat->node_id, memcg, sc->priority);
4902 int priority;
4905 if (sc->priority != DEF_PRIORITY || sc->nr_to_reclaim < MIN_LRU_BATCH)
4908 * Determine the initial priority based on
4909 * (total >> priority) * reclaimed_to_scanned_ratio = nr_to_reclaim,
4917 priority = fls_long(reclaimable) - 1 - fls_long(sc->nr_to_reclaim - 1);
4919 sc->priority = clamp(priority, 0, DEF_PRIORITY);
5690 sc->priority == DEF_PRIORITY);
5780 sc->priority < DEF_PRIORITY - 2))
5892 sc->priority);
6077 if (sc->priority == 1 && !sc->nr_reclaimed)
6215 int initial_priority = sc->priority;
6228 sc->priority);
6242 if (sc->priority < DEF_PRIORITY - 2)
6244 } while (--sc->priority >= 0);
6283 sc->priority = initial_priority;
6291 sc->priority = initial_priority;
6440 .priority = DEF_PRIORITY,
6447 * scan_control uses s8 fields for order, priority, and reclaim_idx.
6500 * NOTE: Although we can get the priority field, using it
6504 * the priority and make it zero.
6528 .priority = DEF_PRIORITY,
6698 * This is used to determine if the scanning priority needs to be raised.
6820 sc.priority = DEF_PRIORITY;
6872 /* Limit the priority of boosting to avoid reclaim writeback */
6873 if (nr_boost_reclaim && sc.priority == DEF_PRIORITY - 2)
6896 if (sc.priority < DEF_PRIORITY - 2)
6907 * There should be no need to raise the scanning priority if
6931 * Raise priority if scanning rate is too low or there was no
6946 sc.priority--;
6947 } while (sc.priority >= 1);
6950 * Restart only if it went through the priority loop all the way,
6953 if (!sc.nr_reclaimed && sc.priority < 1 &&
7258 .priority = DEF_PRIORITY,
7416 .priority = NODE_RECLAIM_PRIORITY,
7445 } while (sc.nr_reclaimed < nr_pages && --sc.priority >= 0);