Re: [PATCH v2 02/10] compaction: trivial clean up acct_isolated

From: Rik van Riel
Date: Wed Jun 01 2011 - 11:31:25 EST


On 05/29/2011 02:13 PM, Minchan Kim wrote:
acct_isolated of compaction uses page_lru_base_type which returns only
base type of LRU list so it never returns LRU_ACTIVE_ANON or LRU_ACTIVE_FILE.
In addtion, cc->nr_[anon|file] is used in only acct_isolated so it doesn't have
fields in conpact_control.
This patch removes fields from compact_control and makes clear function of
acct_issolated which counts the number of anon|file pages isolated.

Cc: KOSAKI Motohiro<kosaki.motohiro@xxxxxxxxxxxxxx>
Cc: Mel Gorman<mgorman@xxxxxxx>
Cc: Rik van Riel<riel@xxxxxxxxxx>
Cc: Andrea Arcangeli<aarcange@xxxxxxxxxx>
Cc: Johannes Weiner<hannes@xxxxxxxxxxx>
Reviewed-by: KAMEZAWA Hiroyuki<kamezawa.hiroyu@xxxxxxxxxxxxxx>
Signed-off-by: Minchan Kim<minchan.kim@xxxxxxxxx>

Acked-by: Rik van Riel <riel@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/