From: Hongbo Li <lihongbo22@huawei.com>
To: Lukas Bulwahn <lbulwahn@redhat.com>,
Kent Overstreet <kent.overstreet@linux.dev>,
Brian Foster <bfoster@redhat.com>,
<linux-bcachefs@vger.kernel.org>
Cc: <kernel-janitors@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Lukas Bulwahn <lukas.bulwahn@redhat.com>
Subject: Re: [PATCH] bcachefs: fix typo in reference to BCACHEFS_DEBUG
Date: Thu, 11 Apr 2024 17:21:05 +0800 [thread overview]
Message-ID: <a2683fad-07db-4857-9ebf-7adf31a09e50@huawei.com> (raw)
In-Reply-To: <20240411082931.56362-1-lukas.bulwahn@redhat.com>
Also, I am curious why such spelling errors cannot be detected at the
compilation stage.
On 2024/4/11 16:29, Lukas Bulwahn wrote:
> Commit ec9cc18fc2e6 ("bcachefs: Add checks for invalid snapshot IDs")
> intends to check the sanity of a snapshot and panic when
> BCACHEFS_DEBUG is set, but that conditional has a typo.
>
> Fix the typo to refer to the actual existing Kconfig symbol.
>
> This was found with ./scripts/checkkconfigsymbols.py.
>
> Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
> ---
> fs/bcachefs/snapshot.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/bcachefs/snapshot.h b/fs/bcachefs/snapshot.h
> index b7d2fed37c4f..3fdb41b33d2d 100644
> --- a/fs/bcachefs/snapshot.h
> +++ b/fs/bcachefs/snapshot.h
> @@ -77,7 +77,7 @@ static inline u32 __bch2_snapshot_parent(struct bch_fs *c, u32 id)
> return 0;
>
> u32 parent = s->parent;
> - if (IS_ENABLED(CONFIG_BCACHEFS_DEBU) &&
> + if (IS_ENABLED(CONFIG_BCACHEFS_DEBUG) &&
> parent &&
> s->depth != snapshot_t(c, parent)->depth + 1)
> panic("id %u depth=%u parent %u depth=%u\n",
next prev parent reply other threads:[~2024-04-11 9:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-11 8:29 Lukas Bulwahn
2024-04-11 9:16 ` Hongbo Li
2024-04-11 9:21 ` Hongbo Li [this message]
2024-04-11 10:21 ` Dan Carpenter
2024-04-11 11:44 ` Hongbo Li
2024-04-11 17:31 ` Kent Overstreet
2024-04-12 1:35 ` Hongbo Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2683fad-07db-4857-9ebf-7adf31a09e50@huawei.com \
--to=lihongbo22@huawei.com \
--cc=bfoster@redhat.com \
--cc=kent.overstreet@linux.dev \
--cc=kernel-janitors@vger.kernel.org \
--cc=lbulwahn@redhat.com \
--cc=linux-bcachefs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas.bulwahn@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®