mm/z3fold.c: improve compression by extending search

The current z3fold implementation only searches this CPU's page lists for
a fitting page to put a new object into.  This patch adds quick search for
very well fitting pages (i.  e.  those having exactly the required number
of free space) on other CPUs too, before allocating a new page for that

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