From: Damien Le Moal <dlemoal@kernel.org>
To: Yingjie Wang <x-professor@outlook.com>,
Mikulas Patocka <mpatocka@redhat.com>,
Alasdair Kergon <agk@redhat.com>,
Mike Snitzer <snitzer@kernel.org>,
Benjamin Marzinski <bmarzins@redhat.com>
Cc: "dm-devel@lists.linux.dev" <dm-devel@lists.linux.dev>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dm zoned: tidy up the variables in dmz_lookup_secondary_sb()
Date: Thu, 3 Dec 2026 15:43:05 +0900 [thread overview]
Message-ID: <2d4d87f3-cf8c-4e5e-9aeb-2fe9befa5029@kernel.org> (raw)
In-Reply-To: <20261202163146.843368-1-x-professor@outlook.com>
On 2026/12/03 1:31, Yingjie Wang wrote:
> Declare i together with nr_zones, and set nr_zones with an if statement
> after the declarations instead of a conditional expression in its
> initializer.
>
> No functional change.
>
> Suggested-by: Damien Le Moal <dlemoal@kernel.org>
> Link: https://lore.kernel.org/dm-devel/17f0e9c6-856b-4814-81c0-388743e0fd58@kernel.org/
> Signed-off-by: Yingjie Wang <x-professor@outlook.com>
Looks much better.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
And yes, squashing this in the original patch is OK I think.
--
Damien Le Moal
Western Digital Research
prev parent reply other threads:[~2026-12-03 6:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 16:31 [PATCH] dm zoned: tidy up the variables in dmz_lookup_secondary_sb() Yingjie Wang
2026-12-03 6:43 ` Damien Le Moal [this message]
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=2d4d87f3-cf8c-4e5e-9aeb-2fe9befa5029@kernel.org \
--to=dlemoal@kernel.org \
--cc=agk@redhat.com \
--cc=bmarzins@redhat.com \
--cc=dm-devel@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=mpatocka@redhat.com \
--cc=snitzer@kernel.org \
--cc=x-professor@outlook.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