From: Carlos Maiolino <cem@kernel.org>
To: Zizhi Wo <wozizhi@huaweicloud.com>
Cc: dgc@kernel.org, djwong@kernel.org, hch@lst.de,
linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org,
yangerkun@huawei.com, chengzhihao1@huawei.com,
wozizhi@huawei.com
Subject: Re: [PATCH] xfs: remove a few duplicated lines
Date: Thu, 26 Nov 2026 14:26:05 +0100 [thread overview]
Message-ID: <awgy2d_SbrvHtvkI@cronus.toxiclabs.cc> (raw)
In-Reply-To: <20261126122229.2281679-1-wozizhi@huaweicloud.com>
On Thu, Nov 26, 2026 at 08:22:29PM +0800, Zizhi Wo wrote:
> From: Zizhi Wo <wozizhi@huawei.com>
>
> Remove duplicated lines:
> - xfs_alloc_read_agf() checks pagf_freeblks twice.
> - xfs_ondisk.h checks the size of struct xfs_attrlist twice.
> - xfs_rtgroup.h declares xfs_rtginode_irele() twice.
>
> No functional changes.
This patch does not apply cleanly as it conflicts with another patch
that has been enqueued in for-next for almost a month...
Please make sure your patches apply cleanly to xfs-linux/for-next before
submitting them.
Also add the proper "Fixes:" tags as appropriate.
>
> Signed-off-by: Zizhi Wo <wozizhi@huawei.com>
> ---
> fs/xfs/libxfs/xfs_alloc.c | 1 -
> fs/xfs/libxfs/xfs_ondisk.h | 1 -
> fs/xfs/libxfs/xfs_rtgroup.h | 2 --
> 3 files changed, 4 deletions(-)
>
> diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c
> index ae221a158764..2c5b73803a6b 100644
> --- a/fs/xfs/libxfs/xfs_alloc.c
> +++ b/fs/xfs/libxfs/xfs_alloc.c
> @@ -3509,7 +3509,6 @@ xfs_alloc_read_agf(
> if (!xfs_is_shutdown(pag_mount(pag))) {
> bool ok = true;
>
> - ok &= pag->pagf_freeblks == be32_to_cpu(agf->agf_freeblks);
> ok &= pag->pagf_freeblks == be32_to_cpu(agf->agf_freeblks);
> ok &= pag->pagf_btreeblks == be32_to_cpu(agf->agf_btreeblks);
> ok &= pag->pagf_flcount == be32_to_cpu(agf->agf_flcount);
> diff --git a/fs/xfs/libxfs/xfs_ondisk.h b/fs/xfs/libxfs/xfs_ondisk.h
> index 23cde1248f01..ae16b1bc2bbe 100644
> --- a/fs/xfs/libxfs/xfs_ondisk.h
> +++ b/fs/xfs/libxfs/xfs_ondisk.h
> @@ -305,7 +305,6 @@ xfs_check_ondisk_structs(void)
> XFS_CHECK_STRUCT_SIZE(struct getbmapx, 48);
> XFS_CHECK_STRUCT_SIZE(struct xfs_attrlist_cursor, 16);
> XFS_CHECK_STRUCT_SIZE(struct xfs_attrlist, 8);
> - XFS_CHECK_STRUCT_SIZE(struct xfs_attrlist, 8);
> XFS_CHECK_STRUCT_SIZE(struct xfs_attrlist_ent, 4);
> XFS_CHECK_STRUCT_SIZE(struct xfs_ag_geometry, 128);
> XFS_CHECK_STRUCT_SIZE(struct xfs_rtgroup_geometry, 128);
> diff --git a/fs/xfs/libxfs/xfs_rtgroup.h b/fs/xfs/libxfs/xfs_rtgroup.h
> index fca2eb74908c..e505be68462b 100644
> --- a/fs/xfs/libxfs/xfs_rtgroup.h
> +++ b/fs/xfs/libxfs/xfs_rtgroup.h
> @@ -328,8 +328,6 @@ int xfs_rtginode_create(struct xfs_rtgroup *rtg, enum xfs_rtg_inodes type,
> bool init);
> void xfs_rtginode_irele(struct xfs_inode **ipp);
>
> -void xfs_rtginode_irele(struct xfs_inode **ipp);
> -
> static inline const char *xfs_rtginode_path(xfs_rgnumber_t rgno,
> enum xfs_rtg_inodes type)
> {
> --
> 2.53.0
>
next prev parent reply other threads:[~2026-11-26 13:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 12:22 Zizhi Wo
2026-11-26 13:26 ` Carlos Maiolino [this message]
2026-11-26 13:43 ` Zizhi Wo
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=awgy2d_SbrvHtvkI@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®