diff options
author | Huang Shijie <shijie8@gmail.com> | 2009-12-14 20:59:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:21 -0500 |
commit | 62c0c2f198c1f2ead05c961e83ef486c45888325 (patch) | |
tree | d880a44df34d3cd14318efd1d5bee186a03cc841 /mm | |
parent | b39415b2731d7dec5e612d2d12595da82399eedf (diff) |
vmscan: simplify code
Simplify the code for shrink_inactive_list().
Signed-off-by: Huang Shijie <shijie8@gmail.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 04658189b9a5..885207a6b6b7 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1165,10 +1165,8 @@ static unsigned long shrink_inactive_list(unsigned long max_scan, | |||
1165 | __mod_zone_page_state(zone, NR_ISOLATED_ANON, nr_anon); | 1165 | __mod_zone_page_state(zone, NR_ISOLATED_ANON, nr_anon); |
1166 | __mod_zone_page_state(zone, NR_ISOLATED_FILE, nr_file); | 1166 | __mod_zone_page_state(zone, NR_ISOLATED_FILE, nr_file); |
1167 | 1167 | ||
1168 | reclaim_stat->recent_scanned[0] += count[LRU_INACTIVE_ANON]; | 1168 | reclaim_stat->recent_scanned[0] += nr_anon; |
1169 | reclaim_stat->recent_scanned[0] += count[LRU_ACTIVE_ANON]; | 1169 | reclaim_stat->recent_scanned[1] += nr_file; |
1170 | reclaim_stat->recent_scanned[1] += count[LRU_INACTIVE_FILE]; | ||
1171 | reclaim_stat->recent_scanned[1] += count[LRU_ACTIVE_FILE]; | ||
1172 | 1170 | ||
1173 | spin_unlock_irq(&zone->lru_lock); | 1171 | spin_unlock_irq(&zone->lru_lock); |
1174 | 1172 | ||