From 0f955a7464857ee321ee156b7cee6c218258f079 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 28 Jun 2013 09:52:22 +1000 Subject: [PATCH] hugepage-convert-huge-zero-page-shrinker-to-new-shrinker-api-fix fix warnings Cc: Dave Chinner Cc: Glauber Costa Signed-off-by: Andrew Morton --- mm/huge_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 8dc36f559398..ed26ccbe4e6c 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -211,14 +211,14 @@ static void put_huge_zero_page(void) BUG_ON(atomic_dec_and_test(&huge_zero_refcount)); } -static long shrink_huge_zero_page_count(struct shrinker *shrink, +static unsigned long shrink_huge_zero_page_count(struct shrinker *shrink, struct shrink_control *sc) { /* we can free zero page only if last reference remains */ return atomic_read(&huge_zero_refcount) == 1 ? HPAGE_PMD_NR : 0; } -static long shrink_huge_zero_page_scan(struct shrinker *shrink, +static unsigned long shrink_huge_zero_page_scan(struct shrinker *shrink, struct shrink_control *sc) { if (atomic_cmpxchg(&huge_zero_refcount, 1, 0) == 1) { -- 2.39.5