Lines Matching +full:scan +full:- +full:count
1 /* SPDX-License-Identifier: GPL-2.0 */
77 lru->key = key; in list_lru_init_memcg_key()
105 * This also applies when attempting to insert the item multiple times - if
149 * are automatically moved to the parent memcg. This is done in a race-free
174 * @nid: the node id to count from.
175 * @memcg: the cgroup to count from.
177 * There is no guarantee that the list is not updated while the count is being
190 return list_lru_count_one(lru, sc->nid, sc->memcg); in list_lru_shrink_count()
195 long count = 0; in list_lru_count() local
199 count += list_lru_count_node(lru, nid); in list_lru_count()
201 return count; in list_lru_count()
214 * @nid: the node id to scan from.
215 * @memcg: the cgroup to scan from.
219 * @nr_to_walk: how many items to scan.
221 * This function will scan all elements in a particular @lru, calling the
223 * spinlock and a caller-provided opaque. The @isolate callback can choose to
240 * @nid: the node id to scan from.
241 * @memcg: the cgroup to scan from.
245 * @nr_to_walk: how many items to scan.
262 return list_lru_walk_one(lru, sc->nid, sc->memcg, isolate, cb_arg, in list_lru_shrink_walk()
263 &sc->nr_to_scan); in list_lru_shrink_walk()
270 return list_lru_walk_one_irq(lru, sc->nid, sc->memcg, isolate, cb_arg, in list_lru_shrink_walk_irq()
271 &sc->nr_to_scan); in list_lru_shrink_walk_irq()