Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2067180rwb; Sun, 14 Aug 2022 20:31:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JnX9fLcj7OCohrAPyMjo/nkH2tUVDktv4HaJ1Ql2WruHsZlyCoky+RRcKcpP0+UnpI3FE X-Received: by 2002:a17:907:2c78:b0:730:df57:1237 with SMTP id ib24-20020a1709072c7800b00730df571237mr8859356ejc.196.1660534292926; Sun, 14 Aug 2022 20:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660534292; cv=none; d=google.com; s=arc-20160816; b=L0ih6ZixF44MdMaGvVH1fXcTtS61/tt8ou6wznG+66F/hHC8OvOckRUQiAMjuUyxnK ev9m5A0/RMckMKlqeF5x/uJtirJBOvpn4ftWoZGcHSLD2+ctLqa5kPd4DKIqmld61yll ezOcq5iSCZR85zZRyEgqYU000MpEHQbQ3OdjR8aZdkYvo0UIg2x+c9SsktZYaV5slhVH BPhsvL/9EMsO9AkvLLu5SZKUd3QkHsFqTQ/sXwt3z+aQNvJ5PfuVNKt1hkokrxx74xLr 6bb2FZITxA9pKEN1sVBlUMm+4xBu4FY/Ki67unv14hlirz/UTYMEye6s8WU3BJRFMX6B 42DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6ZAPe24UPjX8eoUSAE34k30mhffWmlvupJUO5j1netk=; b=CKAIOh4AG98477TAJNk9NC1T2yESUdHDqfxjsSMIOt9hn9D1+i+OLJCgLaj0pTNV7N QZq/U8jn8G6iK0SRh8hPI7MHkKAax4p2IHdAEzJ3W2TgGPdw8YfCCOvAD1mgjiBNd+Qf Orm4i9ek04nAOxNq3hSA5CRuC/zx19CAhpazkrOhMH/BPfGGuQYsYM0Z+znzouCSlp4z dbEqrkgrpOlqnlMaubV3nUZzoavPeCHbq89IMZ2Vst8uTGeh1tLpY7nD0sxO2V3TU/JO K2qUTkpSI1+dGmFFZVOk9STemmdSj2Cz42tPo5avM5G9pMmKg+Ltue8TRk5uUIVuqCR0 zHqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a056402174400b0043a92332470si6057563edx.589.2022.08.14.20.31.06; Sun, 14 Aug 2022 20:31:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232176AbiHODLH (ORCPT + 99 others); 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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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