Re: [PATCH v2] mm/z3fold.c: Reinitialize zhdr structs after migration

2019-07-16 Thread Shakeel Butt
On Mon, Jul 15, 2019 at 5:05 PM Henry Burns wrote: > > z3fold_page_migration() calls memcpy(new_zhdr, zhdr, PAGE_SIZE). > However, zhdr contains fields that can't be directly coppied over (ex: > list_head, a circular linked list). We only need to initialize the > linked lists in new_zhdr, as

[PATCH v2] mm/z3fold.c: Reinitialize zhdr structs after migration

2019-07-15 Thread Henry Burns
z3fold_page_migration() calls memcpy(new_zhdr, zhdr, PAGE_SIZE). However, zhdr contains fields that can't be directly coppied over (ex: list_head, a circular linked list). We only need to initialize the linked lists in new_zhdr, as z3fold_isolate_page() already ensures that these lists are empty