From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E2E1C00140 for ; Mon, 15 Aug 2022 03:11:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232260AbiHODLH (ORCPT ); Sun, 14 Aug 2022 23:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiHODLF (ORCPT ); Sun, 14 Aug 2022 23:11:05 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0FE76464 for ; Sun, 14 Aug 2022 20:11:04 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4M5fMJ6pcyzXdcy; Mon, 15 Aug 2022 11:06:52 +0800 (CST) Received: from use12-sp2.huawei.com (10.67.189.174) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 15 Aug 2022 11:11:02 +0800 From: Xiaoming Ni To: , CC: , , , , , Subject: [PATCH 0/2] squashfs: Add the mount parameter "threads=" Date: Mon, 15 Aug 2022 11:10:58 +0800 Message-ID: <20220815031100.75243-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.189.174] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500006.china.huawei.com (7.192.105.130) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, Squashfs supports multiple decompressor parallel modes. However, this mode can be configured only during kernel building and does not support flexible selection during runtime. In the current patch set, the mount parameter "threads=" is added to allow users to select the parallel decompressor mode and configure the number of decompressors when mounting a file system. Xiaoming Ni (2): squashfs: add the mount parameter theads= squashfs: Allows users to configure the number of decompression threads. fs/squashfs/Kconfig | 24 ++++++++-- fs/squashfs/decompressor_multi.c | 32 ++++++++------ fs/squashfs/decompressor_multi_percpu.c | 37 ++++++++++------ fs/squashfs/decompressor_single.c | 23 ++++++---- fs/squashfs/squashfs.h | 39 ++++++++++++++--- fs/squashfs/squashfs_fs_sb.h | 4 +- fs/squashfs/super.c | 77 ++++++++++++++++++++++++++++++++- 7 files changed, 191 insertions(+), 45 deletions(-) -- 2.12.3