Re: [Patch v2 1/4] mm/migrate.c: not necessary to check start and i

From: Wei Yang
Date: Tue Jan 28 2020 - 19:31:52 EST


On Tue, Jan 28, 2020 at 11:04:23AM +0100, David Hildenbrand wrote:
>On 22.01.20 02:16, Wei Yang wrote:
>> Till here, i must no less than start. And if i equals to start,
>> store_status() would always return 0.
>
>I'd suggest
>
>"
>mm/migrate.c: no need to check for i > start in do_pages_move()
>
>At this point, we always have i >= start. If i == start, store_status()
>will return 0. So we can drop the check for i > start.
>"
>
>Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>
>

Thanks, I took it.

--
Wei Yang
Help you, Help me