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

Mike Kravetz
2021-01-04T22:19:36Z

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@bytedance.com>
> ---
> mm/migrate.c | 6 ++++++
> 1 file changed, 6 insertions(+)

Thanks!

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

--
Mike Kravetz