From: Carlos Maiolino <cem@kernel.org>
To: Zizhi Wo <wozizhi@huaweicloud.com>
Cc: Christoph Hellwig <hch@lst.de>,
dgc@kernel.org, djwong@kernel.org, linux-xfs@vger.kernel.org,
linux-kernel@vger.kernel.org, yangerkun@huawei.com,
chengzhihao1@huawei.com, wozizhi@huawei.com
Subject: Re: [PATCH V2] xfs: remove duplicated lines
Date: Mon, 30 Nov 2026 14:37:01 +0100 [thread overview]
Message-ID: <aw17_c76NSFnUD1A@cronus.toxiclabs.cc> (raw)
In-Reply-To: <86f04f98-36b4-48d3-9ee9-f4545c53bfd1@huaweicloud.com>
On Mon, Nov 30, 2026 at 09:19:34PM +0800, Zizhi Wo wrote:
> Hi,
>
> 在 2026/11/30 20:52, Christoph Hellwig 写道:
> > On Thu, Nov 26, 2026 at 09:59:47PM +0800, Zizhi Wo wrote:
> > > From: Zizhi Wo <wozizhi@huawei.com>
> > >
> > > Remove duplicated lines:
> > > - xfs_ondisk.h checks the size of struct xfs_attrlist twice.
> > > - xfs_rtgroup.h declares xfs_rtginode_irele() twice.
> >
> > These look entirely unrelated, why combine them into a patch?
>
> I squashed them together because when I sent a similar dead-code cleanup
> series earlier this year [1], Carlos suggested that trivial removals
> like these don't really need to be split per-file and could live in one
> patch. I took that as the preferred style for this kind of change.
>
> Carlos, do you still feel the same way here, or would you rather I split
> this into two patches in v3? I'm fine either way.
>
> [1] https://lore.kernel.org/all/aprh7OnJPCL-iIIK@andromeda.toxiclabs.cc/
Yes, that's on me. I don't see the point of removing dead code in
different patches unless there is a very good reason to do so.
This patch though has a slightly different goal than the series you
mentioned before though. This is not removing dead code but duplicated
code added by mistake. Which is not really dead codes as it's code
executed by the cpu (well, one hunk)...
But again, I particularly don't see a reason to split those in different
patches, unless Christoph thinks otherwise.
>
> >
> > > Fixes: 650b774cf944 ("xfs: add static size checks for ioctl UABI")
> > > Fixes: 6b08901a6e8f ("xfs: add realtime reverse map inode to metadata directory")
> >
> > and no, removing dead lines is not a fix in the Fixes: tag sense.
>
> Understood. I didn't add any fixtags in v1 since I considered this a
> pure cleanup, but Carlos asked me to add them during the v1 review [2],
> which is why they showed up in v2.
>
> Carlos, could you clarify how you'd like this handled going forward? I'm
> fine either way too...
>
> [2] https://lore.kernel.org/all/awgy2d_SbrvHtvkI@cronus.toxiclabs.cc/
Yes, that's on me too. I consider the duplicated lines a bug during the
implementation, but, perhaps my understanding of the Fixes: tag was
too literal, so leave it out as Christoph suggested.
If Christoph doesn't bother with both changes belonging to a single
patch, I can remove the Fixes: tag at the time I pull the patch. If he
prefers you to split it into two patches, then on next version you send
them without the Fixes:.
Cheers.
>
>
> Thanks,
> Zizhi Wo
>
>
next prev parent reply other threads:[~2026-11-30 13:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 13:59 Zizhi Wo
2026-11-26 14:15 ` Carlos Maiolino
2026-11-30 12:52 ` Christoph Hellwig
2026-11-30 13:19 ` Zizhi Wo
2026-11-30 13:22 ` Christoph Hellwig
2026-11-30 13:35 ` Zizhi Wo
2026-11-30 13:37 ` Carlos Maiolino [this message]
2026-11-30 13:47 ` Christoph Hellwig
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=aw17_c76NSFnUD1A@cronus.toxiclabs.cc \
--to=cem@kernel.org \
--cc=chengzhihao1@huawei.com \
--cc=dgc@kernel.org \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=wozizhi@huawei.com \
--cc=wozizhi@huaweicloud.com \
--cc=yangerkun@huawei.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®