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

2019-07-02 Thread Shakeel Butt
On Tue, Jul 2, 2019 at 4:35 PM Henry Burns wrote: > > Following zsmalloc.c's example we call trylock_page() and unlock_page(). > Also make z3fold_page_migrate() assert that newpage is passed in locked, > as per the documentation. > > Link:

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

2019-07-02 Thread Henry Burns
Following zsmalloc.c's example we call trylock_page() and unlock_page(). Also make z3fold_page_migrate() assert that newpage is passed in locked, as per the documentation. Link: http://lkml.kernel.org/r/20190702005122.41036-1-henrybu...@google.com Signed-off-by: Henry Burns Suggested-by: Vitaly