]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
mm: add context argument to shrinker callback to remaining shrinkers
authorDave Chinner <dchinner@redhat.com>
Wed, 21 Jul 2010 05:33:01 +0000 (15:33 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 21 Jul 2010 05:33:01 +0000 (15:33 +1000)
Add the shrinkers missed in the first conversion of the API in
commit 7f8275d0d660c146de6ee3017e1e2e594c49e820 ("mm: add context argument to
shrinker callback").

Signed-off-by: Dave Chinner <dchinner@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c
net/sunrpc/auth.c

index 1f32b460adceff38c58a06073eb18f7d14fc26ec..d233c65f3f7fbe4506b5e933a29ced7b323121a8 100644 (file)
@@ -394,7 +394,7 @@ static int ttm_pool_get_num_unused_pages(void)
 /**
  * Callback for mm to request pool to reduce number of page held.
  */
-static int ttm_pool_mm_shrink(int shrink_pages, gfp_t gfp_mask)
+static int ttm_pool_mm_shrink(struct shrinker *shrink, int shrink_pages, gfp_t gfp_mask)
 {
        static atomic_t start_pool = ATOMIC_INIT(0);
        unsigned i;
index 73affb8624faa06ee95c6ce5bf5e7ea364908d02..8dc47f1d00019c4f4a91f252f70b5771d19a5956 100644 (file)
@@ -267,7 +267,7 @@ rpcauth_prune_expired(struct list_head *free, int nr_to_scan)
  * Run memory cache shrinker.
  */
 static int
-rpcauth_cache_shrinker(int nr_to_scan, gfp_t gfp_mask)
+rpcauth_cache_shrinker(struct shrinker *shrink, int nr_to_scan, gfp_t gfp_mask)
 {
        LIST_HEAD(free);
        int res;