Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1904735rwj; Sun, 18 Dec 2022 18:20:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXuL1TppAcrWcM8t6PNnvtmmLLHJw/9oJ11bV/zcohQ0Zp3vA51coIUrf65oKwj/NrRc37s4 X-Received: by 2002:a05:6a20:e198:b0:b0:25ba:1769 with SMTP id ks24-20020a056a20e19800b000b025ba1769mr4817157pzb.58.1671416413915; Sun, 18 Dec 2022 18:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671416413; cv=none; d=google.com; s=arc-20160816; b=GD/3CKXBMmeSmobeH0H/UERsKLIm8FHnA8cIugaFNgohjsY6QpNpaExZ6T4A2c9DRN VQY3yGJYKG6NEhfMVSYQFuCMdHuOuuCitdJN3yvGjSubszJVF1cmU45lWSVijqJzsInS KQbbNNQn8zA8H5Oj3Ddm7I2wRmMJ+EvHiRCNHlTlzVxgZUF9AF6pR3q+K4YzItuTB9oo wjIezIYihhlm0mfmJfq41JsRzKEO5rptSdBYkKpwWknfWJ1/u4G6VjemLsGwBG7Ee8B8 ArO4QrQc/TGPigWc+h2w4u0TC0RwX72OwsIp8yji4rm8eE3YKj81S+GMCqtexhJ68EmK Ur+g== 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=EK0fw2b2sTU1RaOI51pI0y5Rk8n8t5plkIPv0XRYi+w=; b=SYQkGB5ON0evXi6wB+P/PCZhlejcBRBaqEVk0YWTTqNCWeOAX5WwFRgSsxQ0pjRgcC G+jQQ86OdH8V9S9UGmVvqbDWPUpR7M+6V8vsHihIxKB23Huy2TXJil48PZu5nTfQBaxH 2jsRRcQMFAg4BLA5U/4LdfMbF4Ak/Br1yYrRoiWs8pOa2O5m1Lh3IhQDgNhD0alhpJDQ 59SkquvzJs44F28NMpN6lNJ3fVN9GJeDXzHTeD+5Q2UwKXgYYM6q+n4mzOh+YPQnLgfq 50zII1K+R1tLH2kqRXbZjZEa5HaZaEJs0U1N8m/d0/qznd03F/GLJwPHNV5FvISBa1hW Rm+Q== 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; 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 b29-20020a630c1d000000b00478ba6cb230si9549663pgl.131.2022.12.18.18.19.56; Sun, 18 Dec 2022 18:20:13 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbiLSBvp (ORCPT + 99 others); Sun, 18 Dec 2022 20:51:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiLSBvo (ORCPT ); Sun, 18 Dec 2022 20:51:44 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F71C635C for ; Sun, 18 Dec 2022 17:51:43 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Nb2jH28m0zJqbb for ; Mon, 19 Dec 2022 09:50:43 +0800 (CST) Received: from huawei.com (10.113.189.238) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 19 Dec 2022 09:51:41 +0800 From: Wang Jianjian To: CC: , , Subject: [PATCH 1/1] ext4: Don't show commit interval if it is zero Date: Mon, 19 Dec 2022 09:51:40 +0800 Message-ID: <20221219015140.877136-1-wangjianjian3@huawei.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.113.189.238] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500009.china.huawei.com (7.192.105.203) 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 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 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