Lines Matching +full:scan +full:- +full:count
1 /* SPDX-License-Identifier: GPL-2.0 */
13 * Bitmap and deferred work of shrinker::id corresponding to memcg-aware
41 * How many objects scan_objects should scan and try to reclaim.
59 #define SHRINK_EMPTY (~0UL - 1)
68 * count callback - the shrinker relies on aggregating scan counts that couldn't
72 * @scan_objects will only be called if @count_objects returned a non-zero
73 * value for the number of freeable objects. The callout should scan the cache
75 * of objects freed during the scan, or SHRINK_STOP if progress cannot be made
93 * The reference count of this shrinker. Registered shrinker have an
130 * non-MEMCG_AWARE shrinker should not have this flag set.
141 return refcount_inc_not_zero(&shrinker->refcount); in shrinker_try_get()
146 if (refcount_dec_and_test(&shrinker->refcount)) in shrinker_put()
147 complete(&shrinker->done); in shrinker_put()