]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hugepage-convert-huge-zero-page-shrinker-to-new-shrinker-api-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 19 Jun 2013 00:06:53 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:26:49 +0000 (17:26 +1000)
fix warnings

Cc: Dave Chinner <dchinner@redhat.com>
Cc: Glauber Costa <glommer@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c

index 8dc36f55939827d7ea541f227bde4f420216f190..ed26ccbe4e6c7d50d1fe18103aa2a63d686c233a 100644 (file)
@@ -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) {