From: Dave Chinner Date: Mon, 19 Jul 2010 04:56:17 +0000 (+1000) Subject: mm: add context argument to shrinker callback X-Git-Tag: v2.6.35-rc6~26^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f8275d0d660c146de6ee3017e1e2e594c49e820;p=pandora-kernel.git 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 Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed