Re: [PATCH v2] mm/z3fold.c: Lock z3fold page before __SetPageMovable()

From: David Rientjes
Date: Tue Jul 02 2019 - 14:58:55 EST


On Mon, 1 Jul 2019, Henry Burns wrote:

> __SetPageMovable() expects it's page to be locked, but z3fold.c doesn't
> lock the page. Following zsmalloc.c's example we call trylock_page() and
> unlock_page(). Also makes z3fold_page_migrate() assert that newpage is
> passed in locked, as documentation.
>
> Signed-off-by: Henry Burns <henryburns@xxxxxxxxxx>
> Suggested-by: Vitaly Wool <vitalywool@xxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>