Commit 29d06bbb authored by Yaowei Bai's avatar Yaowei Bai Committed by Linus Torvalds
Browse files

mm/vmscan: make inactive_anon_is_low_global return directly



Delete unnecessary if to let inactive_anon_is_low_global return
directly.

No functional changes.

Signed-off-by: default avatarYaowei Bai <bywxiaobai@163.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5d317b2b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;
}

/**