diff options
author | Huang Jianan <huangjianan@oppo.com> | 2021-12-06 22:35:52 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2021-12-08 09:42:18 +0800 |
commit | 40452ffca3c1a0f2994e826f9fa213b107f1a2d4 (patch) | |
tree | c7f6126f75ba80183a7a7cd34832d4f75e594455 /Documentation/ABI | |
parent | 168e9a76200c54c584a23aa88c62c53c4b0edd66 (diff) | |
download | linux-stable-40452ffca3c1a0f2994e826f9fa213b107f1a2d4.tar.gz linux-stable-40452ffca3c1a0f2994e826f9fa213b107f1a2d4.tar.bz2 linux-stable-40452ffca3c1a0f2994e826f9fa213b107f1a2d4.zip |
erofs: add sysfs node to control sync decompression strategy
Although readpage is a synchronous path, there will be no additional
kworker scheduling overhead in non-atomic contexts together with
dm-verity.
Let's add a sysfs node to disable sync decompression as an option.
Link: https://lore.kernel.org/r/20211206143552.8384-1-huangjianan@oppo.com
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-fs-erofs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-fs-erofs b/Documentation/ABI/testing/sysfs-fs-erofs index a9512594dc4c..05482374a741 100644 --- a/Documentation/ABI/testing/sysfs-fs-erofs +++ b/Documentation/ABI/testing/sysfs-fs-erofs @@ -5,3 +5,12 @@ Description: Shows all enabled kernel features. Supported features: zero_padding, compr_cfgs, big_pcluster, chunked_file, device_table, compr_head2, sb_chksum. + +What: /sys/fs/erofs/<disk>/sync_decompress +Date: November 2021 +Contact: "Huang Jianan" <huangjianan@oppo.com> +Description: Control strategy of sync decompression + - 0 (default, auto): enable for readpage, and enable for + readahead on atomic contexts only, + - 1 (force on): enable for readpage and readahead. + - 2 (force off): disable for all situations. |