From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C68E1847F for ; Fri, 10 Mar 2023 13:56:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A767C433D2; Fri, 10 Mar 2023 13:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678456578; bh=e/clle4sniBocbV6pcTXWpCG2LhZMYCTy5zhJhkHGRU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JLhHQ8GUcmtpRjEVeFXHdppbYp6n5Ps7zufXR8b5Zt9HD19ARCC5EkuZTX9vx5MVy JVLkDpvsCiDzxtMrn/77IQBNUPaZ/yUG1LEfpU8hHD6tOmFAtiTrXtagpUFZ/z64tf 9rVHP+9Bns0bxGDumjhPV4SJMYyOID6XbgZ7t2dU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wang Jianjian , Theodore Tso , Sasha Levin Subject: [PATCH 6.2 052/211] ext4: dont show commit interval if it is zero Date: Fri, 10 Mar 2023 14:37:12 +0100 Message-Id: <20230310133720.316756816@linuxfoundation.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230310133718.689332661@linuxfoundation.org> References: <20230310133718.689332661@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Wang Jianjian [ Upstream commit 934b0de1e9fdea93c4c7f2e18915c54fae67bdc6 ] 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 Link: https://lore.kernel.org/r/20221219015128.876717-1-wangjianjian3@huawei.com Signed-off-by: Theodore Ts'o Signed-off-by: Sasha Levin --- 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 260c1b3e3ef2c..3b9e30e1afd91 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.39.2