Re: [PATCH 1/6] mm: migrate: do not migrate HugeTLB page whose refcount is one

From: Mike Kravetz
Date: Mon Jan 04 2021 - 17:22:01 EST


On 1/3/21 10:58 PM, Muchun Song wrote:
> If the refcount is one when it is migrated, it means that the page
> was freed from under us. So we are done and do not need to migrate.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
> ---
> mm/migrate.c | 6 ++++++
> 1 file changed, 6 insertions(+)

Thanks!

Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>

--
Mike Kravetz