Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return number of pages freed in the __arc_shrunker_func().
According to the comments in the kernel's shrinker.h file, the scan_objects callback should return the number of objects actually freed. Previously, the shrinker returned the number of objects which were _attempted_ to be freed. When the return value of a shrinker is too high, callers may retry shrinking indefinitely.
- Loading branch information