Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2924207pxb; Tue, 24 Aug 2021 10:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMDjlodlwNMC6w67+m8MUy0ha7G0Q1cFnHsxCpgjxX1nqB/PSIxYBS+1YH67aL/M/Ug0Se X-Received: by 2002:a05:6e02:1bc8:: with SMTP id x8mr27321694ilv.138.1629826984314; Tue, 24 Aug 2021 10:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629826984; cv=none; d=google.com; s=arc-20160816; b=hBbRagdOMTq//UMdDwDOWuaXiaJ/49vTe2QdEhi8TMTUv2yDc7jaF5lJsphhYPha0N 4h7g3488lckqw+vt89wvN1+mwVbTo3sL+DFXefPxbYy4F4ChXacydYa0OnLsxQyJ3Emq GkKJ3HRw+4tNwBcJiLUSCr6snclpw1NOGclrD3uIc1d/c6+t4bJBAewaNsnrThupfIkZ jAICGb7HJNCJnTw3L/L8Yj1r9QA7+e2iaLK2ggEG4OsMJWxBX3lsrIJwkROzzEeWVWOp JKkhK1cLc2FHEgx0sB3O6korFle2HwanWdY/DFvd/gZNFlSdm1oLue4az5/s+wwmS8Sz xqxw== 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=wq8hSFaCsG9kVVDYar5jQhzC0LVaC7nrUdUgjjUh7fU=; b=S8Vd7GjYpWiZo4lXaryYGx0fKdlQy165b0XcFYhkMu15c/Z48ukj2D2PhOD2h81/dL FB8Z6Je+FRJpRVN4gArjHOU+rEsDmWkD8ElT1FJBjD2MlEu/UarYR+wj+FhcrbMABJRn tZ0btNCk5+770caWBYpcj1dUeIm2VwKVYIF979L6by/s4nhmgqoYNVUX3eGIJFalGGLO dfszbXNGKsCdMHPlTyTO3a/sFTEnUDXRkOX4GV9Td6Vgh4HyAFEdSRO2J/pvZhJ8jBMR ghTyypB8d1mNnZafpoOtqv0YlFQsrtXtgOvmL4Gca0E/Z64bzBw9i+OzcsvRVr9F0z5I bY4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GSeeaSKC; 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 m11si19405251jaj.5.2021.08.24.10.42.52; Tue, 24 Aug 2021 10:43:04 -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=GSeeaSKC; 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 S241353AbhHXRmu (ORCPT + 99 others); Tue, 24 Aug 2021 13:42:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:45136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242728AbhHXRjr (ORCPT ); Tue, 24 Aug 2021 13:39:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D472610A7; Tue, 24 Aug 2021 17:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629826006; bh=aIgNnNWgoZHQIiACgNhH+aNjlUHVUpf4mP6Hd9AYmJo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GSeeaSKCriryh/io7TCKIjo5xUuUMX1HI/pARLoZcfeWy6iZBgey5msDgWfNi1Jt6 Fa1+CM0ITFBVMj8TJJagrs/EL1RhzYW5fu2JQgJlu45MRuQjRmh3TN/nM0s2DZGSxb OQZlp05VQv8U3lph0UL3BIVuiwklgjWblZnSTMeHRzXkvYhgKrSQicx2Kq6gEKcJud uzcBhnSf2p+RN0g8QU4+RqtP4VErG6UtmEAjfnoHfdfmb6cmT8lb4K5qawm5g9jT/F LTyBj1A6GN3etNnhZ/1N+Aucp23md5QmOuLVLNoR59E9OPABVTygWmJKjeEnGDxZmJ ss3UjX3PPB97g== Date: Tue, 24 Aug 2021 10:26:45 -0700 From: Jaegeuk Kim To: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: Re: [PATCH] f2fs: fix wrong option name printed by parse_options() Message-ID: References: <20210824011948.15408-1-chao@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210824011948.15408-1-chao@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/24, Chao Yu wrote: > 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; What about disabling MERGE_CHECKPOINT autmatically? > + } > + > /* Not pass down write hints if the number of active logs is lesser > * than NR_CURSEG_PERSIST_TYPE. > */ > -- > 2.32.0