Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2327394pxb; Mon, 23 Aug 2021 18:20:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU+McexF8O6bSMXLLAZrE+SxFIuT00OW4Itm7A4moYKq8+fNl5BveFatJP/38D7b+vGead X-Received: by 2002:a5d:9b99:: with SMTP id r25mr29214855iom.104.1629768048840; Mon, 23 Aug 2021 18:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629768048; cv=none; d=google.com; s=arc-20160816; b=AoEKNeACCxUQj3Qhyln3acStf1ro4ZcltlD97aQSo8Vl5NlXvmFjN09eFG0+2X3OWT KlVfiAPjpX8vwyMpNk783DuuBsFrsLe9SR+2mmy2LoT/YeixjDIrJ98Fd8PdQwsRpo1v ri65RiI2KGNkBFuqO8rq1hcpxrit9Q7YuMXeEIcoRwIzBeKiwgghZwaIJGPquv4BHmJu bmAODtd3r9wXRmkdQXiovf/mBZHmSuZfWt10FrleujcRT6u81hcnSa6U6HP9jn1HeQqv mnwhocIy7NPrB2YV8TRt8omsB+C+5v0bzT3GtMr17iVgNB4UeMdtA8tRmVmShMJMRYjL ENuw== 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:dkim-signature; bh=2sBrzslN3z6tcRV86SDTjHGYg5jYol69ZJ4a12vGLFU=; b=sKp0PzGC2jNbu5HUZqUWs3CDj+cni0nAHMkpX9Ohnrwxu2i+V94GPSLMAg6NTKmNCD oWpq3jvkltB44nc11a00pHoMbeerBte98svpjJSlToQNVvHHjxeQGr5FGrjaNDxgKbJi OjEwyQ4aFK3skq/1LSDq/xEN4aU1FtbU5w6mcmCIrE23DDP9PndvCFsAQWxziAsHg+oq rv3Ok1kzYuxBKsaw2gcuZCHsiOPDRR62Uee0bT7WA9yPCaqHWlyD0di574VeOAuqjKyi M04i2qL5QY8jPKdSZvQtp/4vrpLorXHqMSaQVZNv9TsKPhWfLxXxrIZfqtuiYYZ2yMfp YJ2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X9GgP3p0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si14937145jaj.115.2021.08.23.18.20.37; Mon, 23 Aug 2021 18:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X9GgP3p0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232355AbhHXBUh (ORCPT + 99 others); Mon, 23 Aug 2021 21:20:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:49822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbhHXBUf (ORCPT ); Mon, 23 Aug 2021 21:20:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7794861056; Tue, 24 Aug 2021 01:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629767992; bh=HVZTqOmU6yGjrnUz9nZy965JrWb9oPWaPbk7egBfE2Y=; h=From:To:Cc:Subject:Date:From; b=X9GgP3p07uB8vlItd0PUdqd+/ogUgdCMVK4ZKLbx0zCX3UNQyqJkLwdzu7IntfhnW MPG8g+b37v0gi/vD+VaAJAb5gOZjzZv4zzuhOFh6Gj+nXwM7z+dJO+YPGMSbFjkltL nDnNgbQi/jKiPTe94gRMgbKaoM7FP8JTOJkFV7rDiKxYqlHUzVjJRNem6X9dEc7wkI 8LcY3zZB5WWAG8ry7uRx/C6Du1kOVuQQUTr3QdmQOSyk2fDhDv8QU6JrHtd/zY1XpU N6zOllcfjo0+tsBrvLKf/yJJ1HfW/2njdP+tV+s+7ZpJJxlkmDeX5wU2Qb5HTnOD9M i4b5fVkkFxwKQ== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu , Chao Yu Subject: [PATCH] f2fs: fix wrong option name printed by parse_options() Date: Tue, 24 Aug 2021 09:19:48 +0800 Message-Id: <20210824011948.15408-1-chao@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It prints below kernel message during mounting w/ checkpoint=disable option: "F2FS-fs (pmem0): checkpoint=merge cannot be used with checkpoint=disable" Fix typo "checkpoint=merge" w/ "checkpoint_merge" Signed-off-by: Chao Yu --- fs/f2fs/super.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 49e153fd8183..88c66e46bd5c 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1289,6 +1289,12 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount) return -EINVAL; } + if (test_opt(sbi, DISABLE_CHECKPOINT) && + test_opt(sbi, MERGE_CHECKPOINT)) { + f2fs_err(sbi, "checkpoint_merge cannot be used with checkpoint=disable\n"); + return -EINVAL; + } + /* Not pass down write hints if the number of active logs is lesser * than NR_CURSEG_PERSIST_TYPE. */ -- 2.32.0