Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10470056rwl; Mon, 2 Jan 2023 03:16:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXtiL1q6rKqcZ7V3ujAPa6nUZ0rEfKQVB5OTds/9iu4MsBmQLKBiPLW9BJ/tbY4y8nVVrwwW X-Received: by 2002:a17:90a:2a42:b0:225:d697:40d7 with SMTP id d2-20020a17090a2a4200b00225d69740d7mr32387996pjg.36.1672658174206; Mon, 02 Jan 2023 03:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672658174; cv=none; d=google.com; s=arc-20160816; b=lIR2QGJkOqqInxFYq+326d3xl6HFlQJoRuJHW3N0tDr5dwaJew2Qade5mJZ8YXvjpc j7yytvciSTgq8MnLX1kK10Ia8LvggZCGmBL8ydHaDz/qW2rqJYyekBn4qrJwd5a7++Xy OES9XVb5s8RAm4uChRxgFvmUgRYD0CefOfEGib29TnbZ8/PXj8kmY3Aermbd9seH1Vup T6P+wGHqQ71RNPnKC6Cm55To6mkQUBk97Ja+WJ5RXjR4yLpQYjWT4qnOEdTYBHMlwPl9 RU6UY4LhERLYgHVjhcvFdsjocqpPpD3qYGHGy4ZymGAmPZADzHARlMiPAwZLh+bGFWES +AwQ== 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:dkim-signature; bh=Vffoyq4kjjtDmu0OYi2MsiQ6OLxFuvmce5ViXFa1Msk=; b=gJLJeElAuDxP3mHSsvgZQ4k7UECvWJnQL++u6i2PAn5GV768i4KqjEE0rJ0ACotF2C Zcp1qj2FPUB4vAdpYV++nMBmT26t+6Ttn3TZ7zYVS98T9HLewdUhbTQXvJeTA+uQDKYY EZtESh0A9q5NUOTPLC056os8YGzjwf/mA5OrSM16rtLUdzcgta1L1BRrmzs+RpklvwxF H2N8RBHh4GgNN58t36fhtlxeN/nfUpIgV7nvW2+zCFIZBX96DbNKCORzWea1q+yUr/RF 0cc8FbsysRmdjPVOznEr9dOeKUdVoFa9naNW+j3I1hpENtDiadBTtlj6LSaEwNmN8pj1 BZMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bhyCz+tz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q188-20020a6343c5000000b0046fcbcb1015si29857788pga.331.2023.01.02.03.15.52; Mon, 02 Jan 2023 03:16:14 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bhyCz+tz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230161AbjABLNH (ORCPT + 99 others); Mon, 2 Jan 2023 06:13:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231730AbjABLNC (ORCPT ); Mon, 2 Jan 2023 06:13:02 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C85AC for ; Mon, 2 Jan 2023 03:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672657935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Vffoyq4kjjtDmu0OYi2MsiQ6OLxFuvmce5ViXFa1Msk=; b=bhyCz+tz2ucKBULN6/I0rL0uLVadGQsmxA6c4H8r35KN+pI0tokfqEN2Z4KXlUCRfxZBVw VJ/6OVYg0NoWKt2K482ejCwni5TJlYuzmSrhXq+UeT9LFhpYET76aRgic2YIlMREHvMB8f Cs18Kni/fpJblVvErKzTVBbPHyl6U/A= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-612-UvpAo1GvPvu2R0hdbvm3Kg-1; Mon, 02 Jan 2023 06:12:09 -0500 X-MC-Unique: UvpAo1GvPvu2R0hdbvm3Kg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B3030380670D; Mon, 2 Jan 2023 11:12:08 +0000 (UTC) Received: from ovpn-193-44.brq.redhat.com (ovpn-193-44.brq.redhat.com [10.40.193.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CCB22492D8B; Mon, 2 Jan 2023 11:12:07 +0000 (UTC) Date: Mon, 2 Jan 2023 12:12:05 +0100 From: Lukas Czerner To: Wang Jianjian Cc: linux-ext4@vger.kernel.org, zhangzhikang1@huawei.com, wangqiang62@huawei.com, zhengbowen7@huawei.com Subject: Re: [PATCH 1/1] ext4: Don't show commit interval if it is zero Message-ID: <20230102111205.5arohyoxw5alkych@ovpn-193-44.brq.redhat.com> References: <20221219015140.877136-1-wangjianjian3@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221219015140.877136-1-wangjianjian3@huawei.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hi, good catch, this is indeed a bug. You could also fix the xfstest ext4/053 which missed this problem. You can add Reviewed-by: Lukas Czerner On Mon, Dec 19, 2022 at 09:51:40AM +0800, Wang Jianjian wrote: > If commit interval is 0, it means using default value. > > Fixes: 6e47a3cc68fc ("ext4: get rid of super block and sbi from handle_mount_ops()") > Signed-off-by: Wang Jianjian > --- > fs/ext4/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index 16a343e8047d..b93911d80cd9 100644 > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -2146,7 +2146,7 @@ static int ext4_parse_param(struct fs_context *fc, struct fs_parameter *param) > return 0; > case Opt_commit: > if (result.uint_32 == 0) > - ctx->s_commit_interval = JBD2_DEFAULT_MAX_COMMIT_AGE; > + result.uint_32 = JBD2_DEFAULT_MAX_COMMIT_AGE; > else if (result.uint_32 > INT_MAX / HZ) { > ext4_msg(NULL, KERN_ERR, > "Invalid commit interval %d, " > -- > 2.32.0 >