|
@@ -194,7 +194,7 @@ static bool sane_reclaim(struct scan_control *sc)
|
|
|
|
|
|
static unsigned long zone_reclaimable_pages(struct zone *zone)
|
|
static unsigned long zone_reclaimable_pages(struct zone *zone)
|
|
{
|
|
{
|
|
- int nr;
|
|
|
|
|
|
+ unsigned long nr;
|
|
|
|
|
|
nr = zone_page_state(zone, NR_ACTIVE_FILE) +
|
|
nr = zone_page_state(zone, NR_ACTIVE_FILE) +
|
|
zone_page_state(zone, NR_INACTIVE_FILE);
|
|
zone_page_state(zone, NR_INACTIVE_FILE);
|
|
@@ -3693,10 +3693,10 @@ 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 */
|
|
/* 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)
|
|
{
|
|
{
|
|
- long nr_pagecache_reclaimable;
|
|
|
|
- long delta = 0;
|
|
|
|
|
|
+ unsigned long nr_pagecache_reclaimable;
|
|
|
|
+ unsigned long delta = 0;
|
|
|
|
|
|
/*
|
|
/*
|
|
* If RECLAIM_UNMAP is set, then all file pages are considered
|
|
* If RECLAIM_UNMAP is set, then all file pages are considered
|