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 V2] xfs: remove duplicated lines
Date: Thu, 26 Nov 2026 15:15:29 +0100 [thread overview]
Message-ID: <awg-k2ZtQ3BHioE2@cronus.toxiclabs.cc> (raw)
In-Reply-To: <20261126135947.2820748-1-wozizhi@huaweicloud.com>
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.
>
> No functional changes.
>
> Fixes: 650b774cf944 ("xfs: add static size checks for ioctl UABI")
> Fixes: 6b08901a6e8f ("xfs: add realtime reverse map inode to metadata directory")
> Signed-off-by: Zizhi Wo <wozizhi@huawei.com>
Looks good.
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
> ---
> fs/xfs/libxfs/xfs_ondisk.h | 1 -
> fs/xfs/libxfs/xfs_rtgroup.h | 2 --
> 2 files changed, 3 deletions(-)
>
> 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
> @@ -303,11 +303,10 @@ xfs_check_ondisk_structs(void)
> XFS_CHECK_STRUCT_SIZE(struct dioattr, 12);
> XFS_CHECK_STRUCT_SIZE(struct getbmap, 32);
> 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);
> XFS_CHECK_STRUCT_SIZE(struct xfs_error_injection, 8);
> XFS_CHECK_STRUCT_SIZE(struct xfs_fsop_geom, 256);
> 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
> @@ -326,12 +326,10 @@ int xfs_rtginode_load(struct xfs_rtgroup *rtg, enum xfs_rtg_inodes type,
> struct xfs_trans *tp);
> 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)
> {
> return kasprintf(GFP_KERNEL, "%u.%s", rgno, xfs_rtginode_name(type));
> }
> --
> 2.52.0
>
>
prev parent reply other threads:[~2026-11-26 14:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 13:59 Zizhi Wo
2026-11-26 14:15 ` Carlos Maiolino [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=awg-k2ZtQ3BHioE2@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®