Re: [PATCH 2/5] mm, compaction: simplify handling restart position in free pages scanner

2015-01-20 Thread Vlastimil Babka
On 01/20/2015 02:27 PM, Zhang Yanfei wrote: > Hello, > > 在 2015/1/19 18:05, Vlastimil Babka 写道: >> @@ -883,6 +883,8 @@ static void isolate_freepages(struct compact_control *cc) >> nr_freepages += isolated; >> >> /* >> + * If we isolated enough freepages, or

Re: [PATCH 2/5] mm, compaction: simplify handling restart position in free pages scanner

2015-01-20 Thread Zhang Yanfei
Hello, 在 2015/1/19 18:05, Vlastimil Babka 写道: > Handling the position where compaction free scanner should restart (stored in > cc->free_pfn) got more complex with commit e14c720efdd7 ("mm, compaction: > remember position within pageblock in free pages scanner"). Currently the > position is

Re: [PATCH 2/5] mm, compaction: simplify handling restart position in free pages scanner

2015-01-20 Thread Zhang Yanfei
Hello, 在 2015/1/19 18:05, Vlastimil Babka 写道: Handling the position where compaction free scanner should restart (stored in cc-free_pfn) got more complex with commit e14c720efdd7 (mm, compaction: remember position within pageblock in free pages scanner). Currently the position is updated in

Re: [PATCH 2/5] mm, compaction: simplify handling restart position in free pages scanner

2015-01-20 Thread Vlastimil Babka
On 01/20/2015 02:27 PM, Zhang Yanfei wrote: Hello, 在 2015/1/19 18:05, Vlastimil Babka 写道: @@ -883,6 +883,8 @@ static void isolate_freepages(struct compact_control *cc) nr_freepages += isolated; /* + * If we isolated enough freepages, or aborted due

[PATCH 2/5] mm, compaction: simplify handling restart position in free pages scanner

2015-01-19 Thread Vlastimil Babka
Handling the position where compaction free scanner should restart (stored in cc->free_pfn) got more complex with commit e14c720efdd7 ("mm, compaction: remember position within pageblock in free pages scanner"). Currently the position is updated in each loop iteration isolate_freepages(), although

[PATCH 2/5] mm, compaction: simplify handling restart position in free pages scanner

2015-01-19 Thread Vlastimil Babka
Handling the position where compaction free scanner should restart (stored in cc-free_pfn) got more complex with commit e14c720efdd7 (mm, compaction: remember position within pageblock in free pages scanner). Currently the position is updated in each loop iteration isolate_freepages(), although