mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zizhi Wo <wozizhi@huaweicloud.com>
To: Carlos Maiolino <cem@kernel.org>, 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
Subject: Re: [PATCH] xfs: remove a few duplicated lines
Date: Thu, 26 Nov 2026 21:43:29 +0800	[thread overview]
Message-ID: <89b6062e-73c8-4a7b-8e7f-6899ac8470f6@huaweicloud.com> (raw)
In-Reply-To: <awgy2d_SbrvHtvkI@cronus.toxiclabs.cc>



在 2026/11/26 21:26, Carlos Maiolino 写道:
> 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.

Sorry, I sent this one too quickly. I'll make sure to rebase and test
against xfs-linux/for-next before sending patches next time.

> 
> Also add the proper "Fixes:" tags as appropriate.

I originally treated this as a pure cleanup and didn't add fixtag. I'll
include the appropriate ones in V2, and drop the xfs_alloc_read_agf
hunk.

Thanks,
Zizhi Wo

> 
>>
>> 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
>>
> 
> 


      reply	other threads:[~2026-11-26 13:43 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
2026-11-26 13:43   ` Zizhi Wo [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=89b6062e-73c8-4a7b-8e7f-6899ac8470f6@huaweicloud.com \
    --to=wozizhi@huaweicloud.com \
    --cc=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=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®