]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/zcache/zcache-main.c
drivers-convert-shrinkers-to-new-count-scan-api-fix
[karo-tx-linux.git] / drivers / staging / zcache / zcache-main.c
index cba7f006db6c2224aaccc90495618365e4f3153f..9313df79ae0ec19afc51c17588db0b0af913a516 100644 (file)
@@ -1140,15 +1140,15 @@ static bool zcache_freeze;
  * pageframes in use.  FIXME POLICY: Probably the writeback should only occur
  * if the eviction doesn't free enough pages.
  */
-static long scan_zcache_memory(struct shrinker *shrink,
-                              struct shrink_control *sc)
+static unsigned long scan_zcache_memory(struct shrinker *shrink,
+                                       struct shrink_control *sc)
 {
        static bool in_progress;
        int nr_evict = 0;
        int nr_writeback = 0;
        struct page *page;
        int  file_pageframes_inuse, anon_pageframes_inuse;
-       long freed = 0;
+       unsigned long freed = 0;
 
        /* don't allow more than one eviction thread at a time */
        if (in_progress)
@@ -1200,10 +1200,10 @@ static long scan_zcache_memory(struct shrinker *shrink,
        return freed;
 }
 
-static long count_zcache_memory(struct shrinker *shrink,
+static unsigned long count_zcache_memory(struct shrinker *shrink,
                                struct shrink_control *sc)
 {
-       int ret = -1;
+       long ret = -1;
 
        /* resample: has changed, but maybe not all the way yet */
        zcache_last_active_file_pageframes =