Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3249596pxb; Sun, 20 Feb 2022 13:59:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/FODSdyE3R2tUUmYr9GJDzoiseE76PW4Ht6TwcbPYzSPmbacyb/jYs2ZD1vtSBL1jRA+L X-Received: by 2002:a63:6982:0:b0:373:494a:22ae with SMTP id e124-20020a636982000000b00373494a22aemr13927742pgc.624.1645394351358; Sun, 20 Feb 2022 13:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645394351; cv=none; d=google.com; s=arc-20160816; b=dhQpwDHZ/PXcnTmLJmj25TK2kcmenm7gBnsV7472K4wioSuv+Lw3ZBKKItS9b8Gu+S YfQfHcI5UHwmk5R1r5HLzMMzvjvJa30qLMHBFt3v1m/K8QEzneX4UAxoLLiT+U8p3laj C6XrJO9fduhAMF7h33nYcX0RLUyWj6u6zosRW50xJbwFyos7noaCP/oC1Rn9lVfwwUKO 2Mksi6mR81I3xFviOR9V9HJrjPsaGCHdPBS8DUa6gg8RID5jOuZjJKTb1HC1fPtpF/Qr YP5s1vhDnUf4hFF3aZdkwDxQl5Tf9I4PTmepmHCnMfsomEilkAO0+WAklMPygKUNmo1P AYNg== 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; bh=ufJ+nloIjgm38Eb6hGj8lT4opa6MW5Sd03OuzWplgJ0=; b=iO/Mf9Vrj+i3ypLqWjK0dpEsUc9Ps+rryoSR5CkARpKmWMsOpK1BMnB8/hCzfXJdJU 3LGbm7f3kX5ZkWo5iHF/B61qJYDoGPadUZEOxEQdI1JSP12jixNrDt5gkFIoKuo2TR2W J8H33BfU6o22RZFfnZySWeq+Mp7+cCL/LapEFc6S4ukM/jmmE8j1TveLCET+IN7jkGil /kTGEIW2YNPccy6Goco5t6CNhmzvwBz57548cW3LPpi92/yHZmpgjRfI0bfB84jKXP9i vDsd2Ns+DINg2nHcl61Sn63l75QWg4W7jS4Nv8ECV7IKhDkloSfSSKa0WhHcFv/aPlC+ PuGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7si25398636plt.163.2022.02.20.13.58.44; Sun, 20 Feb 2022 13:59:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244300AbiBTRAx (ORCPT + 99 others); Sun, 20 Feb 2022 12:00:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244302AbiBTRAv (ORCPT ); Sun, 20 Feb 2022 12:00:51 -0500 Received: from out20-99.mail.aliyun.com (out20-99.mail.aliyun.com [115.124.20.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37ED2527E8; Sun, 20 Feb 2022 09:00:27 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08295915|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0260975-0.00210438-0.971798;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047201;MF=guan@eryu.me;NM=1;PH=DS;RN=8;RT=8;SR=0;TI=SMTPD_---.MsrOLZg_1645376423; Received: from localhost(mailfrom:guan@eryu.me fp:SMTPD_---.MsrOLZg_1645376423) by smtp.aliyun-inc.com(33.13.245.115); Mon, 21 Feb 2022 01:00:24 +0800 Date: Mon, 21 Feb 2022 01:00:23 +0800 From: Eryu Guan To: Shin'ichiro Kawasaki Cc: fstests@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, Naohiro Aota , Johannes Thumshirn , Damien Le Moal Subject: Re: [PATCH v3 1/6] common/rc: fix btrfs mixed mode usage in _scratch_mkfs_sized Message-ID: References: <20220218073156.2179803-1-shinichiro.kawasaki@wdc.com> <20220218073156.2179803-2-shinichiro.kawasaki@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218073156.2179803-2-shinichiro.kawasaki@wdc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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-ext4@vger.kernel.org On Fri, Feb 18, 2022 at 04:31:51PM +0900, Shin'ichiro Kawasaki wrote: > The helper function _scratch_mkfs_sized needs a couple of improvements > for btrfs. At first, the function adds --mixed option to mkfs.btrfs when > the filesystem size is smaller then 256MiB, but this threshold is no > longer correct and it should be 109MiB. Secondly, the --mixed option I'm wondering if this 256M -> 109M change was made just recently or was made on old kernel. If it was changed just recently, say 5.14 kernel, I suspect that tests will fail on kernels prior to that change. But if this change was made on some acient kernels, say 4.10, then I think we're fine with this patch. Thanks, Eryu > shall not be specified to mkfs.btrfs for zoned devices, since zoned > devices does not allow mixing metadata blocks and data blocks. > > Suggested-by: Naohiro Aota > Signed-off-by: Shin'ichiro Kawasaki > Reviewed-by: Johannes Thumshirn > --- > common/rc | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/common/rc b/common/rc > index de60fb7b..74d2d8bd 100644 > --- a/common/rc > +++ b/common/rc > @@ -1075,10 +1075,10 @@ _scratch_mkfs_sized() > ;; > btrfs) > local mixed_opt= > - # minimum size that's needed without the mixed option. > - # Ref: btrfs-prog: btrfs_min_dev_size() > - # Non mixed mode is also the default option. > - (( fssize < $((256 * 1024 *1024)) )) && mixed_opt='--mixed' > + # Mixed option is required when the filesystem size is small and > + # the device is not zoned. Ref: btrfs-progs: btrfs_min_dev_size() > + (( fssize < $((109 * 1024 * 1024)) )) && > + ! _scratch_btrfs_is_zoned && mixed_opt='--mixed' > $MKFS_BTRFS_PROG $MKFS_OPTIONS $mixed_opt -b $fssize $SCRATCH_DEV > ;; > jfs) > -- > 2.34.1