]> 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)
commit28ec907515583ed92855b2bb721bf89bfc71713e
tree3dfecc4d2b2bb5a72bbe31659b4ea65f2385ddab
parent80dfab4a5dd6ad03ce436e6c79f370e6d0774e34
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]