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) {