mm/z3fold.c: add structure for buddy handles

For z3fold to be able to move its pages per request of the memory
subsystem, it should not use direct object addresses in handles.  Instead,
it will create abstract handles (3 per page) which will contain pointers
to z3fold objects.  Thus, it will be possible to change these pointers
when z3fold page is moved.

Signed-off-by: Vitaly Wool <>
Cc: Bartlomiej Zolnierkiewicz <>
Cc: Dan Streetman <>
Cc: Krzysztof Kozlowski <>
Cc: Oleksiy Avramchenko <>
Cc: Uladzislau Rezki <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
1 file changed