This is a consolidation of z3fold optimizations and fixes done so far, revised after comments from Dan ([1], [2], [3], [4]). The coming patches are to be applied on top of the following commit:
Author: zhong jiang <zhongji...@huawei.com> Date: Tue Dec 20 11:53:40 2016 +1100 mm/z3fold.c: limit first_num to the actual range of possible buddy indexes All the z3fold patches newer than this one are considered obsolete and should be substituted with this patch series. The coming patches have been verified with linux-next tree. [1] https://lkml.org/lkml/2016/11/29/969 [2] https://lkml.org/lkml/2017/1/4/586 [3] https://lkml.org/lkml/2017/1/4/604 [4] https://lkml.org/lkml/2017/1/4/737