Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1890564rwj; Sun, 18 Dec 2022 18:02:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXsF42OLQAVz6k36nkX8GcU0LbnBiBvicyyCb41jdV8gwBPp/b6gCrjVBFiFDWTtFrC9o1jX X-Received: by 2002:a05:6402:35d4:b0:47b:20c:eea0 with SMTP id z20-20020a05640235d400b0047b020ceea0mr395152edc.23.1671415340739; Sun, 18 Dec 2022 18:02:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671415340; cv=none; d=google.com; s=arc-20160816; b=rZdKNUDmZiW5/Zr4ItBKyuSWVUBOSNjRSQrt+k7No6OpGbn3kDgCThTypu0UXuciNa yIbSiiUDwMfgNNiwhXB3VlIjdwYeiASXu39hIR8/9SJlRsMNvkeQusgsPS3iJd5nfmia lkv3plXvdfpOaCdDWxLQvI8FFF1hclwHrVLmY8elkJqA7Vgms5cIHXcD3jKbwDnJkCpv X3ZZtwmAblAK6NYBrM70I0Y32dr6R5JaEEwRtUvc9970X9npF/fm47LslPFqnKqNtm2+ QsVO7FEJvvgpzdDuetqUUy2P/k5Tvl1xOU0aW7rF2aMKAHjZ5oE0SxlpPgXvRXhAeAA9 ibWA== 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=ditnX4zM4PfKkX6FbRoEX56PbADor2WtW/s/nor46qbLdcxqCAynGJEOsvk16rGR4m Vm6JHH70DBFrwMgkr3ZvfoNlmLhgsxHwJKIu0O9S+cBucHBVjYMRLItAuHpO2/ucyJGr sceDsj70BM8Jzd7CtJG7AxihhVtw0vPryo6uGEBJm+qXi3q81FL6X/xMYC2+72dnt8HF aqhnYMyuY7dlHAlRUlVVrYvkDYwITrVBFCegXHDadUA0QdaYJAVF/+gPnQ+vLoEoev47 eGZ5ocjIpLauY/5SqbpCTSHyEghS/qJZV7PqJ8Sq9EmNhnN91Of18GbTbffLtk038Vuz wMzg== 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 j11-20020a05640211cb00b004700a51c22asi9732424edw.420.2022.12.18.18.01.47; Sun, 18 Dec 2022 18:02:20 -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 S230385AbiLSBvd (ORCPT + 99 others); Sun, 18 Dec 2022 20:51:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiLSBvc (ORCPT ); Sun, 18 Dec 2022 20:51:32 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B3B05F82 for ; Sun, 18 Dec 2022 17:51:31 -0800 (PST) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Nb2hw6Tmpz16LfS for ; Mon, 19 Dec 2022 09:50:24 +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:28 +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:28 +0800 Message-ID: <20221219015128.876717-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: dggems705-chm.china.huawei.com (10.3.19.182) 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