staging: erofs: add erofs_allocpage
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 26 Jul 2018 12:21:59 +0000 (20:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jul 2018 15:24:08 +0000 (17:24 +0200)
commitb29e64d8798018c3e82a426ec34b39b825ac68dc
tree3dfecc4d2b2bb5a72bbe31659b4ea65f2385ddab
parent02827e1796b33f1794966f5c3101f8da2dfa9c1d
staging: erofs: add erofs_allocpage

This patch introduces an temporary _on-stack_ page
pool to reuse the freed page directly as much as
it can for better performance and release all pages
at a time, it also slightly reduces the possibility of
the potential memory allocation failure.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Makefile
drivers/staging/erofs/internal.h
drivers/staging/erofs/utils.c [new file with mode: 0644]