Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2717198rdh; Mon, 30 Oct 2023 05:57:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvx3S9UdYig08eGHpP2plWCp/ZcAPvgagys8fLunRQQd3tSH3OwA/jrTIKoZ422UOHmOSr X-Received: by 2002:a05:6358:904c:b0:168:dbac:b94e with SMTP id f12-20020a056358904c00b00168dbacb94emr12555726rwf.32.1698670653162; Mon, 30 Oct 2023 05:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698670653; cv=none; d=google.com; s=arc-20160816; b=E8B1xzPMzcmgjW0NS7mACfrwj4e9G1xXzrN0UYzqKQV4YXUyPUjdljRBBfA3P7qulx 9LNxiOZeSyNnvPirf8tblf+6V27mJoaNUqFOgAbdZ+YgM5nLRsUG6xgXjj1Mrq5rIBPd +VY1bknHdhfVfdKkC4I6gCyFj3iHJZDDXHYR7ES7hyUUyLgah8zhDKco+ogS1vqs8ekT 7O2OFQYctspjG7brbFP2vm5/mcPV6ThLF5z8MB8aqXkz3lvgysmmeuJXMLxHxzs9vrK0 YQQjmAudWxz2R+d9mTBA5fUNhu+gm4rguX0x6TnhJnvgQRo09yhvUA/Lk7XB3Valkgcc bEcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-hdrordr :ironport-data:dkim-signature; bh=WX9tTZCKpZiA1t9o5ga6LTiCMeC5BF8XvUEQk4HuoS8=; fh=/Isf/zz0UX22O5MZ/YBkv3dPXbeKprtj270gDmEqicM=; b=LnNfrQipLwhIByfZxsYw8nfhIFcYk8RfTY57Xrq6garHmpkjpriFOQL9mSVSQC3qsF nAd8LIvsP44wKVny1uwj++wPRMJTg16DqmF5+P/GCq4+uwMBqL3O7yPXLL1SuNiNDN5f xKY19Dfz9rHlR0HMGaXapH2bxZl0OZUoMaPUECFKWV34/yEoBKUxIcPMVGa/i+pWF1MJ IbBwYcz+JDsjsVcAAeOYNgz1JeTTVn7uEGavvm6qrCY/u8aWb/cdKTqtocscwP8zYye6 9hHc6PJ182rvWia9tWYoWAXZ/MdmwqRa9+rSpOQuIUrUR+Lsf+3kuIeWE9G3s5s4q8zn v+bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=Kq2T2tLY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=cisco.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id x185-20020a6386c2000000b005b96e6258fcsi2838180pgd.421.2023.10.30.05.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=Kq2T2tLY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=cisco.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 49F08808599C; Mon, 30 Oct 2023 05:57:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233159AbjJ3M5I (ORCPT + 99 others); Mon, 30 Oct 2023 08:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbjJ3M5H (ORCPT ); Mon, 30 Oct 2023 08:57:07 -0400 Received: from aer-iport-7.cisco.com (aer-iport-7.cisco.com [173.38.203.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99E5EA6; Mon, 30 Oct 2023 05:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1832; q=dns/txt; s=iport; t=1698670624; x=1699880224; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2zPtDsmCSY9ADBIfJbSTE3Dig8/XOZBzisQSxFvjQIw=; b=Kq2T2tLYRsXPn2L7HNznjoRvcxkO6bKTJGqX3E0zzvKDLDNkNc7VG8gg N60JQY2gt9mBrPOS8ChNYhdUIj4b0UFQsSmiKNTYwmnGlFGw59LQd8cdE BFHKlpExPs9Fs24hvsqwFtvU4M4iBc0fJ5HeeptOZthujXBxaA6lcrdW+ U=; X-CSE-ConnectionGUID: 3v9MgFfjTfmbMDJpeD1m9g== X-CSE-MsgGUID: ZtzR6g/rQk2oGbtqdJmkng== X-IPAS-Result: =?us-ascii?q?A0CNAQAapz9llxbLJq1aHgEBCxIMQIFEC4QILhJIjU6IZ?= =?us-ascii?q?ZJZiyWBJQNWDwEBAQ0BAUQEAQGBcgGDEwKHHCc0CQ4BAgQBAQEBAwIDAQEBA?= =?us-ascii?q?QEBAQIBAQUBAQECAQcEFAEBAQEBAQEBNwUQNYV1hk0BAgM6PxALGC5XBhMIg?= =?us-ascii?q?naCXwOnOXiBNIEBsyeBaIFIiAoBigZCgUlEhD8+hBuGSSIEhmQogV0VLgcyg?= =?us-ascii?q?QoMCYEDgy8pjD5eIkdwGwMHA1grECsHBDAbBwYJFhgVJQZRAgItJAkTEj4Eg?= =?us-ascii?q?WWBUQqBAz8PDhGCQyICBzY2GUsrgjAJFQw0TXYQKgQUF4ERBGofFR4SJRESF?= =?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iNtjR7gbwPy8UKzK68u1vAhlpAu6QlUCZu+FTyUUyr7D93YYSAS66w5HSC6KdPedPxoka6g FAInM2X7eYrBJ6LlTCQTOhlIF1Pz6vaWNE7qQM/d6TN5whB6Fb+J9sOsWEWyFNBb5xdI26Bj Fr741s52XNFAJe9RYlTC25bI+0uyKX6GJzeSvnYBjalSsEqLVLvEM1GS0qdwWfpmU4g+ZzT2 Kt3k+7xUx726ow+klJaotvxN5dwn0jSIkuJHPjGI+yPi+b2WZJsYe5t3KGyRu449riYhw7e7 sxSMcCHoz0GDryuPHGLq9VCdQhTRZTeOXwQg5EGHgJkClQ+cFzN99eKqV/cU9U/xv8MxrugE o+VAxEGmDITekEr2S3TOiw8N9sDrL50rGkwOmQ3LE201n04CbtDH49BH6bbiYIPrbQ5pdYtF qFtU5zZUpxypsHvpm11gW/V99c5KnxGRGumYkKYXdTIV8c6GFaVooC+L2MCNkAmV0KKiCf3m JX4viuzfHbJb10K4Br+AB53826MgA== IronPort-HdrOrdr: A9a23:sOASPaO7b/1mGcBcTrWjsMiBIKoaSvp037BF7StMoHBuH/Bw6f rFoB1z73adtN97Yh4dcL67VJW9fQ== X-Talos-CUID: =?us-ascii?q?9a23=3A/ODYyGmZppo3n0H9DwscoG1TqBDXOSbDnVLfDUG?= =?us-ascii?q?6NWhsQpi5a0ed1PphwsU7zg=3D=3D?= X-Talos-MUID: =?us-ascii?q?9a23=3AQ50t3A+5BxE65WBUVmyfM+iQf/V08Z7wBwcXqJZ?= =?us-ascii?q?cvOaOKTV8GTKeijviFw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.03,263,1694736000"; d="scan'208";a="10108601" Received: from aer-iport-nat.cisco.com (HELO aer-core-12.cisco.com) ([173.38.203.22]) by aer-iport-7.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 12:57:02 +0000 Received: from localhost (ams3-vpn-dhcp2135.cisco.com [10.61.72.87]) (authenticated bits=0) by aer-core-12.cisco.com (8.15.2/8.15.2) with ESMTPSA id 39UCv137126740 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Oct 2023 12:57:02 GMT Date: Mon, 30 Oct 2023 14:57:00 +0200 From: Ariel Miculas To: Phillip Lougher Cc: linux-doc@vger.kernel.org, Andrew Morton , serge@hallyn.com, Jonathan Corbet , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] docs: filesystems: document the squashfs specific mount options Message-ID: References: <20231029161924.50648-1-amiculas@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Authenticated-User: amiculas@cisco.com X-Outbound-SMTP-Client: 10.61.72.87, ams3-vpn-dhcp2135.cisco.com X-Outbound-Node: aer-core-12.cisco.com X-Spam-Status: No, score=-8.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:57:17 -0700 (PDT) On 23/10/29 08:33PM, Phillip Lougher wrote: > On 29/10/2023 16:19, Ariel Miculas wrote: > > When SQUASHFS_CHOICE_DECOMP_BY_MOUNT is set, the "threads" mount option > > can be used to specify the decompression mode: single-threaded, > > multi-threaded, percpu or the number of threads used for decompression. > > When SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set and > > SQUASHFS_DECOMP_MULTI is set, the "threads" option can also be used to > > specify the number of threads used for decompression. This mount option > > is only mentioned in fs/squashfs/Kconfig, which makes it difficult to > > find. > > > > Another mount option available is "errors", which can be configured to > > panic the kernel when squashfs errors are encountered. > > > > Add both these options to the squashfs documentation, making them more > > noticeable. > > > > Signed-off-by: Ariel Miculas > > Looks good to me. > > Reviewed-by: Phillip Lougher Unfortunately, it seems this is not quite correct either: There is the config option SQUASHFS_MOUNT_DECOMP_THREADS: ``` bool "Add the mount parameter 'threads=' for squashfs" depends on SQUASHFS depends on SQUASHFS_DECOMP_MULTI default n help Use threads= to set the decompression parallel mode and the number of threads. If SQUASHFS_CHOICE_DECOMP_BY_MOUNT=y threads= else threads=<2|3|...> The upper limit is num_online_cpus() * 2. ``` that depends on SQUASHFS_DECOMP_MULTI. So I think I should take my v1 patch and specify that the "threads=" mount option depends on SQUASHFS_MOUNT_DECOMP_THREADS. There's no need to specify SQUASHFS_DECOMP_MULTI, because SQUASHFS_MOUNT_DECOMP_THREADS already depends on it. What do you think? Regards, Ariel