summaryrefslogtreecommitdiff
path: root/include/linux/random.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-07-19 04:56:17 (GMT)
committerDave Chinner <david@fromorbit.com>2010-07-19 04:56:17 (GMT)
commit7f8275d0d660c146de6ee3017e1e2e594c49e820 (patch)
tree884db927118b44102750b5168ee36ef4b8b5cb4e /include/linux/random.h
parentd0c6f6258478e1dba532bf7c28e2cd6e1047d3a4 (diff)
downloadlinux-fsl-qoriq-7f8275d0d660c146de6ee3017e1e2e594c49e820.tar.xz
mm: add context argument to shrinker callback
The current shrinker implementation requires the registered callback to have global state to work from. This makes it difficult to shrink caches that are not global (e.g. per-filesystem caches). Pass the shrinker structure to the callback so that users can embed the shrinker structure in the context the shrinker needs to operate on and get back to it in the callback via container_of(). Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/random.h')
0 files changed, 0 insertions, 0 deletions