Skip to content

Commit

Permalink
mm/vmscan: make inactive_anon_is_low_global return directly
Browse files Browse the repository at this point in the history
Delete unnecessary if to let inactive_anon_is_low_global return
directly.

No functional changes.

Signed-off-by: Yaowei Bai <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
baihuahua authored and torvalds committed Nov 6, 2015
1 parent 5d317b2 commit 29d06bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1866,10 +1866,7 @@ static int inactive_anon_is_low_global(struct zone *zone)
active = zone_page_state(zone, NR_ACTIVE_ANON);
inactive = zone_page_state(zone, NR_INACTIVE_ANON);

if (inactive * zone->inactive_ratio < active)
return 1;

return 0;
return inactive * zone->inactive_ratio < active;
}

/**
Expand Down

0 comments on commit 29d06bb

Please sign in to comment.