]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sunrpc/auth.c
vmscan: change shrinker API by passing shrink_control struct
[karo-tx-linux.git] / net / sunrpc / auth.c
index 67e31276682ab5a969da50b300d2ff941d7f3553..cd6e4aa19dbfca0de4d54ea5bf6bf5e0d1a79d9f 100644 (file)
@@ -326,10 +326,12 @@ rpcauth_prune_expired(struct list_head *free, int nr_to_scan)
  * Run memory cache shrinker.
  */
 static int
-rpcauth_cache_shrinker(struct shrinker *shrink, int nr_to_scan, gfp_t gfp_mask)
+rpcauth_cache_shrinker(struct shrinker *shrink, struct shrink_control *sc)
 {
        LIST_HEAD(free);
        int res;
+       int nr_to_scan = sc->nr_to_scan;
+       gfp_t gfp_mask = sc->gfp_mask;
 
        if ((gfp_mask & GFP_KERNEL) != GFP_KERNEL)
                return (nr_to_scan == 0) ? 0 : -1;