* [PATCH] xfs: Remove incorrect use of '&'
@ 2026-11-25 17:16 Alejandro Colomar
2026-11-25 17:38 ` Carlos Maiolino
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Alejandro Colomar @ 2026-11-25 17:16 UTC (permalink / raw)
To: linux-xfs, Carlos Maiolino
Cc: Alejandro Colomar, Darrick J. Wong, Christoph Hellwig
[-- Attachment #1: Type: text/plain, Size: 858 bytes --]
We want to pass the character array, not a pointer to it.
This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
"xfs: start creating infrastructure for health monitoring").
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
fs/xfs/xfs_healthmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
index 2bdd747f1ead..56d19ffb02b3 100644
--- a/fs/xfs/xfs_healthmon.c
+++ b/fs/xfs/xfs_healthmon.c
@@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
return false;
if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
return false;
- if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
+ if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
return false;
return true;
}
--
2.55.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH] xfs: Remove incorrect use of '&'
2026-11-25 17:16 [PATCH] xfs: Remove incorrect use of '&' Alejandro Colomar
@ 2026-11-25 17:38 ` Carlos Maiolino
2026-11-25 18:11 ` Alejandro Colomar
2026-11-25 17:43 ` Eric Sandeen
2026-11-26 13:49 ` Carlos Maiolino
2 siblings, 1 reply; 8+ messages in thread
From: Carlos Maiolino @ 2026-11-25 17:38 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-xfs, Darrick J. Wong, Christoph Hellwig
On Wed, Nov 25, 2026 at 06:16:45PM +0100, Alejandro Colomar wrote:
> We want to pass the character array, not a pointer to it.
>
> This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
> "xfs: start creating infrastructure for health monitoring").
>
> Cc: Darrick J. Wong <djwong@kernel.org>
> Cc: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Alejandro Colomar <alx@kernel.org>
> ---
> fs/xfs/xfs_healthmon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
> index 2bdd747f1ead..56d19ffb02b3 100644
> --- a/fs/xfs/xfs_healthmon.c
> +++ b/fs/xfs/xfs_healthmon.c
> @@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
> return false;
> if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
> return false;
> - if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
> + if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
> return false;
> return true;
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
> }
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] xfs: Remove incorrect use of '&'
2026-11-25 17:38 ` Carlos Maiolino
@ 2026-11-25 18:11 ` Alejandro Colomar
2026-11-25 19:00 ` Carlos Maiolino
0 siblings, 1 reply; 8+ messages in thread
From: Alejandro Colomar @ 2026-11-25 18:11 UTC (permalink / raw)
To: Carlos Maiolino; +Cc: linux-xfs, Darrick J. Wong, Christoph Hellwig
[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]
Hi Carlos,
> Date: 2026-11-25 18:38:11+0100
> From: Carlos Maiolino <cem@kernel.org>
>
> On Wed, Nov 25, 2026 at 06:16:45PM +0100, Alejandro Colomar wrote:
> > We want to pass the character array, not a pointer to it.
> >
> > This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
> > "xfs: start creating infrastructure for health monitoring").
> >
> > Cc: Darrick J. Wong <djwong@kernel.org>
> > Cc: Christoph Hellwig <hch@lst.de>
> > Signed-off-by: Alejandro Colomar <alx@kernel.org>
> > ---
> > fs/xfs/xfs_healthmon.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
> > index 2bdd747f1ead..56d19ffb02b3 100644
> > --- a/fs/xfs/xfs_healthmon.c
> > +++ b/fs/xfs/xfs_healthmon.c
> > @@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
> > return false;
> > if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
> > return false;
> > - if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
> > + if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
> > return false;
> > return true;
>
> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Thanks! Will you take the patch?
Cheers,
Alex
>
> > }
> > --
> > 2.55.0
> >
>
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] xfs: Remove incorrect use of '&'
2026-11-25 18:11 ` Alejandro Colomar
@ 2026-11-25 19:00 ` Carlos Maiolino
0 siblings, 0 replies; 8+ messages in thread
From: Carlos Maiolino @ 2026-11-25 19:00 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-xfs, Darrick J. Wong, Christoph Hellwig
On Wed, Nov 25, 2026 at 07:11:48PM +0100, Alejandro Colomar wrote:
> Hi Carlos,
>
> > Date: 2026-11-25 18:38:11+0100
> > From: Carlos Maiolino <cem@kernel.org>
> >
> > On Wed, Nov 25, 2026 at 06:16:45PM +0100, Alejandro Colomar wrote:
> > > We want to pass the character array, not a pointer to it.
> > >
> > > This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
> > > "xfs: start creating infrastructure for health monitoring").
> > >
> > > Cc: Darrick J. Wong <djwong@kernel.org>
> > > Cc: Christoph Hellwig <hch@lst.de>
> > > Signed-off-by: Alejandro Colomar <alx@kernel.org>
> > > ---
> > > fs/xfs/xfs_healthmon.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
> > > index 2bdd747f1ead..56d19ffb02b3 100644
> > > --- a/fs/xfs/xfs_healthmon.c
> > > +++ b/fs/xfs/xfs_healthmon.c
> > > @@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
> > > return false;
> > > if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
> > > return false;
> > > - if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
> > > + if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
> > > return false;
> > > return true;
> >
> > Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
>
> Thanks! Will you take the patch?
Yes I will
>
>
> Cheers,
> Alex
>
> >
> > > }
> > > --
> > > 2.55.0
> > >
> >
> >
>
> --
> <https://www.alejandro-colomar.es>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] xfs: Remove incorrect use of '&'
2026-11-25 17:16 [PATCH] xfs: Remove incorrect use of '&' Alejandro Colomar
2026-11-25 17:38 ` Carlos Maiolino
@ 2026-11-25 17:43 ` Eric Sandeen
2026-11-25 18:10 ` Alejandro Colomar
2026-11-26 13:49 ` Carlos Maiolino
2 siblings, 1 reply; 8+ messages in thread
From: Eric Sandeen @ 2026-11-25 17:43 UTC (permalink / raw)
To: Alejandro Colomar, linux-xfs, Carlos Maiolino
Cc: Darrick J. Wong, Christoph Hellwig
On 11/25/26 11:16 AM, Alejandro Colomar wrote:
> We want to pass the character array, not a pointer to it.
>
> This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
> "xfs: start creating infrastructure for health monitoring").
So,
Fixes: a48373e7d35a ("xfs: start creating infrastructure for health monitoring")
Cc: stable@vger.kernel.org
> Cc: Darrick J. Wong <djwong@kernel.org>
> Cc: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Alejandro Colomar <alx@kernel.org>
> ---
> fs/xfs/xfs_healthmon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
> index 2bdd747f1ead..56d19ffb02b3 100644
> --- a/fs/xfs/xfs_healthmon.c
> +++ b/fs/xfs/xfs_healthmon.c
> @@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
> return false;
> if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
> return false;
> - if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
> + if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
> return false;
> return true;
> }
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] xfs: Remove incorrect use of '&'
2026-11-25 17:43 ` Eric Sandeen
@ 2026-11-25 18:10 ` Alejandro Colomar
2026-11-25 21:42 ` Eric Sandeen
0 siblings, 1 reply; 8+ messages in thread
From: Alejandro Colomar @ 2026-11-25 18:10 UTC (permalink / raw)
To: Eric Sandeen
Cc: linux-xfs, Carlos Maiolino, Darrick J. Wong, Christoph Hellwig
[-- Attachment #1: Type: text/plain, Size: 1706 bytes --]
Hi Eric,
> Date: 2026-11-25 11:43:00-0600
> From: Eric Sandeen <sandeen@sandeen.net>
>
> On 11/25/26 11:16 AM, Alejandro Colomar wrote:
> > We want to pass the character array, not a pointer to it.
> >
> > This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
> > "xfs: start creating infrastructure for health monitoring").
>
>
> So,
>
> Fixes: a48373e7d35a ("xfs: start creating infrastructure for health monitoring")
> Cc: stable@vger.kernel.org
It's unnecessary, because the binary will have the same exact value
passed. It's only a type-system issue, which affects diagnostics etc.,
but doesn't create an actual bug.
I would add the 'Fixes' tag, but without stable@, since it doesn't need
to be backported. I didn't include the 'Fixes' tag because some
maintainers don't want to see them if there's no bug in the binary.
Let me know your preference.
Cheers,
Alex
>
> > Cc: Darrick J. Wong <djwong@kernel.org>
> > Cc: Christoph Hellwig <hch@lst.de>
> > Signed-off-by: Alejandro Colomar <alx@kernel.org>
> > ---
> > fs/xfs/xfs_healthmon.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
> > index 2bdd747f1ead..56d19ffb02b3 100644
> > --- a/fs/xfs/xfs_healthmon.c
> > +++ b/fs/xfs/xfs_healthmon.c
> > @@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
> > return false;
> > if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
> > return false;
> > - if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
> > + if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
> > return false;
> > return true;
> > }
>
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] xfs: Remove incorrect use of '&'
2026-11-25 18:10 ` Alejandro Colomar
@ 2026-11-25 21:42 ` Eric Sandeen
0 siblings, 0 replies; 8+ messages in thread
From: Eric Sandeen @ 2026-11-25 21:42 UTC (permalink / raw)
To: Alejandro Colomar
Cc: linux-xfs, Carlos Maiolino, Darrick J. Wong, Christoph Hellwig
On 11/25/26 12:10 PM, Alejandro Colomar wrote:
> Hi Eric,
>
>> Date: 2026-11-25 11:43:00-0600
>> From: Eric Sandeen <sandeen@sandeen.net>
>>
>> On 11/25/26 11:16 AM, Alejandro Colomar wrote:
>>> We want to pass the character array, not a pointer to it.
>>>
>>> This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
>>> "xfs: start creating infrastructure for health monitoring").
>>
>>
>> So,
>>
>> Fixes: a48373e7d35a ("xfs: start creating infrastructure for health monitoring")
>> Cc: stable@vger.kernel.org
>
> It's unnecessary, because the binary will have the same exact value
> passed. It's only a type-system issue, which affects diagnostics etc.,
> but doesn't create an actual bug.
>
> I would add the 'Fixes' tag, but without stable@, since it doesn't need
> to be backported. I didn't include the 'Fixes' tag because some
> maintainers don't want to see them if there's no bug in the binary.
>
> Let me know your preference.
yeah, fair enough. cem mentioned this too. Sorry for the noise :)
-Eric
>
> Cheers,
> Alex
>
>>
>>> Cc: Darrick J. Wong <djwong@kernel.org>
>>> Cc: Christoph Hellwig <hch@lst.de>
>>> Signed-off-by: Alejandro Colomar <alx@kernel.org>
>>> ---
>>> fs/xfs/xfs_healthmon.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/fs/xfs/xfs_healthmon.c b/fs/xfs/xfs_healthmon.c
>>> index 2bdd747f1ead..56d19ffb02b3 100644
>>> --- a/fs/xfs/xfs_healthmon.c
>>> +++ b/fs/xfs/xfs_healthmon.c
>>> @@ -1061,7 +1061,7 @@ xfs_healthmon_validate(
>>> return false;
>>> if (hmo->format != XFS_HEALTH_MONITOR_FMT_V0)
>>> return false;
>>> - if (memchr_inv(&hmo->pad, 0, sizeof(hmo->pad)))
>>> + if (memchr_inv(hmo->pad, 0, sizeof(hmo->pad)))
>>> return false;
>>> return true;
>>> }
>>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] xfs: Remove incorrect use of '&'
2026-11-25 17:16 [PATCH] xfs: Remove incorrect use of '&' Alejandro Colomar
2026-11-25 17:38 ` Carlos Maiolino
2026-11-25 17:43 ` Eric Sandeen
@ 2026-11-26 13:49 ` Carlos Maiolino
2 siblings, 0 replies; 8+ messages in thread
From: Carlos Maiolino @ 2026-11-26 13:49 UTC (permalink / raw)
To: linux-xfs, Alejandro Colomar; +Cc: Darrick J. Wong, Christoph Hellwig
On Wed, 25 Nov 2026 18:16:45 +0100, Alejandro Colomar wrote:
> We want to pass the character array, not a pointer to it.
>
> This seems an obvious typo, introduced in a48373e7d35a (2026-01-20;
> "xfs: start creating infrastructure for health monitoring").
>
>
Applied to for-next, thanks!
[1/1] xfs: Remove incorrect use of '&'
commit: 58de428557082dabdeaa1e1809766236f8e9d6c3
Best regards,
--
Carlos Maiolino <cem@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-11-26 13:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 17:16 [PATCH] xfs: Remove incorrect use of '&' Alejandro Colomar
2026-11-25 17:38 ` Carlos Maiolino
2026-11-25 18:11 ` Alejandro Colomar
2026-11-25 19:00 ` Carlos Maiolino
2026-11-25 17:43 ` Eric Sandeen
2026-11-25 18:10 ` Alejandro Colomar
2026-11-25 21:42 ` Eric Sandeen
2026-11-26 13:49 ` Carlos Maiolino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox