]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: erofs: move per-CPU buffers implementation to utils.c
authorGao Xiang <gaoxiang25@huawei.com>
Mon, 24 Jun 2019 07:22:53 +0000 (15:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 01:44:39 +0000 (09:44 +0800)
commitfa61a33f53760aa3b9b4f2a4196fc55b58b28394
tree5eeb7161904c103fd2b92bff13efe8bc75739439
parent152a333a589560bee002e4c96761f1b560a5793c
staging: erofs: move per-CPU buffers implementation to utils.c

This patch moves per-CPU buffers to utils.c in order for
the upcoming generic decompression framework to use it.

Note that I tried to use generic per-CPU buffer or
per-CPU page approaches to clean up further, but obvious
performanace regression (about 2% for sequential read) was
observed.

Therefore let's leave it as it is instead, just move
to utils.c and I'll try to dig into the root cause later.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/internal.h
drivers/staging/erofs/unzip_vle.c
drivers/staging/erofs/unzip_vle.h
drivers/staging/erofs/unzip_vle_lz4.c
drivers/staging/erofs/utils.c