]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
erofs: tidy up synchronous decompression
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 12 Jan 2026 03:43:30 +0000 (11:43 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:05:11 +0000 (00:05 +0800)
commitcc831ab33644088c1eef78936de24701014d520a
treeb86c856c22d954c9e0038a33f690659fff296e47
parent06e5c340941fba1c7a2da95ee64d9cae6154bd6e
erofs: tidy up synchronous decompression

 - Get rid of `sbi->opt.max_sync_decompress_pages` since it's fixed as
   3 all the time;

 - Add Z_EROFS_MAX_SYNC_DECOMPRESS_BYTES in bytes instead of in pages,
   since for non-4K pages, 3-page limitation makes no sense;

 - Move `sync_decompress` to sbi to avoid unexpected remount impact;

 - Fold z_erofs_is_sync_decompress() into its caller;

 - Better description of sysfs entry `sync_decompress`.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Documentation/ABI/testing/sysfs-fs-erofs
fs/erofs/internal.h
fs/erofs/super.c
fs/erofs/sysfs.c
fs/erofs/zdata.c