mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
vmscan: simplify code
Simplify the code for shrink_inactive_list(). Signed-off-by: Huang Shijie <[email protected]> Reviewed-by: KOSAKI Motohiro <[email protected]> Reviewed-by: Wu Fengguang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b39415b273
commit
62c0c2f198
1 changed files with 2 additions and 4 deletions
|
|
@ -1165,10 +1165,8 @@ static unsigned long shrink_inactive_list(unsigned long max_scan,
|
|||
__mod_zone_page_state(zone, NR_ISOLATED_ANON, nr_anon);
|
||||
__mod_zone_page_state(zone, NR_ISOLATED_FILE, nr_file);
|
||||
|
||||
reclaim_stat->recent_scanned[0] += count[LRU_INACTIVE_ANON];
|
||||
reclaim_stat->recent_scanned[0] += count[LRU_ACTIVE_ANON];
|
||||
reclaim_stat->recent_scanned[1] += count[LRU_INACTIVE_FILE];
|
||||
reclaim_stat->recent_scanned[1] += count[LRU_ACTIVE_FILE];
|
||||
reclaim_stat->recent_scanned[0] += nr_anon;
|
||||
reclaim_stat->recent_scanned[1] += nr_file;
|
||||
|
||||
spin_unlock_irq(&zone->lru_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue