forked from openzfs/spl
-
Notifications
You must be signed in to change notification settings - Fork 0
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 object freed in the generic shrinker
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. It also didn't cap the freeing at nr_to_scan. If the value returned is too high, callers may retry shrinking indefinitely.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters