]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-fix-declarations-of-nr-delta-and-nr_pagecache_reclaimable-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Oct 2015 22:03:10 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:10 +0000 (09:03 +1100)
Make zone_pagecache_reclaimable() return ulong rather than long.  Negative
values are meainingless here and all zone_pagecache_reclaimable() callers
turn its retrun value into ulong anyway.

Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Alexandru Moise <00moses.alexander00@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index 6d9b5f39420f37515054336fc9fb8eeaf709fa22..1b9eed7b08cfc8b0eb53e0a420c04a7731d3bbfe 100644 (file)
@@ -3693,7 +3693,7 @@ static inline unsigned long zone_unmapped_file_pages(struct zone *zone)
 }
 
 /* Work out how many page cache pages we can reclaim in this reclaim_mode */
-static long zone_pagecache_reclaimable(struct zone *zone)
+static unsigned long zone_pagecache_reclaimable(struct zone *zone)
 {
        unsigned long nr_pagecache_reclaimable;
        unsigned long delta = 0;