]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d8707eb3921b5e05cddbd853bca3be7b9001f31
tree3dfecc4d2b2bb5a72bbe31659b4ea65f2385ddab
parent917254da59e605b0c2faf02f383e882e7c926db8
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]