summaryrefslogtreecommitdiff
path: root/fs/squashfs/squashfs_fs_sb.h
diff options
context:
space:
mode:
authorXiaoming Ni <nixiaoming@huawei.com>2022-10-19 06:09:30 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-11-19 00:55:08 +0300
commitfb40fe04f9df23114782d5edd1c5d017ae9d0ca8 (patch)
tree8bd72fc85c666ab240e6166258e0caf4bc701a63 /fs/squashfs/squashfs_fs_sb.h
parent80f784098ff44e086f68f0e8c98b6c6da8702ec4 (diff)
downloadlinux-fb40fe04f9df23114782d5edd1c5d017ae9d0ca8.tar.xz
squashfs: allows users to configure the number of decompression threads
The maximum number of threads in the decompressor_multi.c file is fixed and cannot be adjusted according to user needs. Therefore, the mount parameter needs to be added to allow users to configure the number of threads as required. The upper limit is num_online_cpus() * 2. Link: https://lkml.kernel.org/r/20221019030930.130456-3-nixiaoming@huawei.com Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com> Reviewed-by: Phillip Lougher <phillip@squashfs.org.uk> Cc: Jianguo Chen <chenjianguo3@huawei.com> Cc: Jubin Zhong <zhongjubin@huawei.com> Cc: Zhang Yi <yi.zhang@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/squashfs/squashfs_fs_sb.h')
-rw-r--r--fs/squashfs/squashfs_fs_sb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/squashfs/squashfs_fs_sb.h b/fs/squashfs/squashfs_fs_sb.h
index f1e5dad8ae0a..659082e9e51d 100644
--- a/fs/squashfs/squashfs_fs_sb.h
+++ b/fs/squashfs/squashfs_fs_sb.h
@@ -67,5 +67,6 @@ struct squashfs_sb_info {
unsigned int ids;
bool panic_on_errors;
const struct squashfs_decompressor_thread_ops *thread_ops;
+ int max_thread_num;
};
#endif