Please sign in to comment.
mm: vmscan: clean up get_scan_count()
Reclaim pressure balance between anon and file pages is calculated through a tuple of numerators and a shared denominator. Exceptional cases that want to force-scan anon or file pages configure the numerators and denominator such that one list is preferred, which is not necessarily the most obvious way: fraction = 1; fraction = 0; denominator = 1; goto out; Make this easier by making the force-scan cases explicit and use the fractionals only in case they are calculated from reclaim history. [email@example.com: avoid using unintialized_var()] Signed-off-by: Johannes Weiner <firstname.lastname@example.org> Reviewed-by: Rik van Riel <email@example.com> Acked-by: Mel Gorman <firstname.lastname@example.org> Reviewed-by: Michal Hocko <email@example.com> Cc: Hugh Dickins <firstname.lastname@example.org> Cc: Satoru Moriya <email@example.com> Cc: Simon Jeons <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
- Loading branch information...