HomeFreeBSD

Linux 3.12 compat: shrinker semantics

Description

Linux 3.12 compat: shrinker semantics

The new shrinker API as of Linux 3.12 modifies "struct shrinker" by
replacing the @shrink callback with the pair of @count_objects and
@scan_objects. It also requires the return value of @count_objects to
return the number of objects actually freed whereas the previous @shrink
callback returned the number of remaining freeable objects.

This patch adds support for the new @scan_objects return value semantics.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #2837

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Oct 2 2014, 12:21 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 28 2014, 4:34 PM
Parents
rG9635861742c6: Illumos 5164-5165 - space map fixes
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGed6e9cc235b4: Linux 3.12 compat: shrinker semantics (authored by Tim Chase <tim@chase2k.com>).Oct 28 2014, 4:34 PM