diff options
author | Gao Xiang <hsiangkao@redhat.com> | 2021-04-10 03:06:30 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@redhat.com> | 2021-04-10 03:19:59 +0800 |
commit | 524887347fcb67faa0a63dd3c4c02ab48d4968d4 (patch) | |
tree | 2a11ca8b2e7c11e74b6f4d1cfb39d2a0c182d7a9 /fs/erofs/Makefile | |
parent | 54e0b6c873dcbd02b9b479c893f6fba8fcbc6a9c (diff) | |
download | linux-stable-524887347fcb67faa0a63dd3c4c02ab48d4968d4.tar.gz linux-stable-524887347fcb67faa0a63dd3c4c02ab48d4968d4.tar.bz2 linux-stable-524887347fcb67faa0a63dd3c4c02ab48d4968d4.zip |
erofs: introduce multipage per-CPU buffers
To deal the with the cases which inplace decompression is infeasible
for some inplace I/O. Per-CPU buffers was introduced to get rid of page
allocation latency and thrash for low-latency decompression algorithms
such as lz4.
For the big pcluster feature, introduce multipage per-CPU buffers to
keep such inplace I/O pclusters temporarily as well but note that
per-CPU pages are just consecutive virtually.
When a new big pcluster fs is mounted, its max pclustersize will be
read and per-CPU buffers can be growed if needed. Shrinking adjustable
per-CPU buffers is more complex (because we don't know if such size
is still be used), so currently just release them all when unloading.
Link: https://lore.kernel.org/r/20210409190630.19569-1-xiang@kernel.org
Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
Diffstat (limited to 'fs/erofs/Makefile')
-rw-r--r-- | fs/erofs/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/erofs/Makefile b/fs/erofs/Makefile index af159539fc1b..1f9aced49070 100644 --- a/fs/erofs/Makefile +++ b/fs/erofs/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_EROFS_FS) += erofs.o -erofs-objs := super.o inode.o data.o namei.o dir.o utils.o +erofs-objs := super.o inode.o data.o namei.o dir.o utils.o pcpubuf.o erofs-$(CONFIG_EROFS_FS_XATTR) += xattr.o erofs-$(CONFIG_EROFS_FS_ZIP) += decompressor.o zmap.o zdata.o |