linux-stable/fs/erofs
Gao Xiang 15cc248e7e erofs: avoid allocating DEFLATE streams before mounting
commit 80eb4f6205 upstream.

Currently, each DEFLATE stream takes one 32 KiB permanent internal
window buffer even if there is no running instance which uses DEFLATE
algorithm.

It's unexpected and wasteful on embedded devices with limited resources
and servers with hundreds of CPU cores if DEFLATE is enabled but unused.

Fixes: ffa09b3bd0 ("erofs: DEFLATE compression support")
Cc: <stable@vger.kernel.org> # 6.6+
Reviewed-by: Sandeep Dhavale <dhavale@google.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240520090106.2898681-1-hsiangkao@linux.alibaba.com
[ Gao Xiang: resolve trivial conflicts. ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:47:31 +02:00
..
compress.h erofs: simplify compression configuration parser 2024-01-25 15:35:57 -08:00
data.c erofs: Convert to use bdev_open_by_path() 2024-03-26 18:19:40 -04:00
decompressor.c erofs: fix lz4 inplace decompression 2024-01-31 16:18:49 -08:00
decompressor_deflate.c erofs: avoid allocating DEFLATE streams before mounting 2024-06-16 13:47:31 +02:00
decompressor_lzma.c erofs: simplify compression configuration parser 2024-01-25 15:35:57 -08:00
dir.c erofs: keep meta inode into erofs_buf 2023-04-17 01:15:50 +08:00
erofs_fs.h erofs: update on-disk format for xattr name filter 2023-08-11 12:11:44 +08:00
fscache.c erofs: fix lockdep false positives on initializing erofs_pseudo_mnt 2024-03-26 18:19:40 -04:00
inode.c v6.6-vfs.ctime 2023-08-28 09:31:32 -07:00
internal.h erofs: get rid of erofs_fs_context 2024-05-25 16:22:53 +02:00
Kconfig erofs: boost negative xattr lookup with bloom filter 2023-08-11 12:11:44 +08:00
Makefile erofs: DEFLATE compression support 2023-08-11 12:11:17 +08:00
namei.c erofs: fix refcount on the metabuf used for inode lookup 2024-03-01 13:35:01 +01:00
pcpubuf.c erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init 2023-03-09 22:49:30 +08:00
super.c erofs: reliably distinguish block based and fscache mode 2024-05-25 16:22:53 +02:00
sysfs.c erofs: make kobj_type structures constant 2023-02-15 08:11:26 +08:00
utils.c erofs: fix erofs_insert_workgroup() lockref usage 2023-11-20 11:59:23 +01:00
xattr.c erofs: boost negative xattr lookup with bloom filter 2023-08-11 12:11:44 +08:00
xattr.h Changes since last update: 2023-04-24 14:25:39 -07:00
zdata.c erofs: fix ztailpacking for subpage compressed blocks 2024-02-05 20:14:16 +00:00
zmap.c erofs: fix up compacted indexes for block size < 4096 2024-02-05 20:14:16 +00:00