public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: convert comma to semicolon
@ 2024-07-09  7:36 Chen Ni
  2024-07-09 10:01 ` Dave Chinner
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Chen Ni @ 2024-07-09  7:36 UTC (permalink / raw)
  To: chandan.babu, djwong; +Cc: linux-xfs, linux-kernel, Chen Ni

Replace a comma between expression statements by a semicolon.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 fs/xfs/xfs_attr_list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_attr_list.c b/fs/xfs/xfs_attr_list.c
index 5c947e5ce8b8..7db386304875 100644
--- a/fs/xfs/xfs_attr_list.c
+++ b/fs/xfs/xfs_attr_list.c
@@ -139,7 +139,7 @@ xfs_attr_shortform_list(
 		sbp->name = sfe->nameval;
 		sbp->namelen = sfe->namelen;
 		/* These are bytes, and both on-disk, don't endian-flip */
-		sbp->value = &sfe->nameval[sfe->namelen],
+		sbp->value = &sfe->nameval[sfe->namelen];
 		sbp->valuelen = sfe->valuelen;
 		sbp->flags = sfe->flags;
 		sbp->hash = xfs_attr_hashval(dp->i_mount, sfe->flags,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: convert comma to semicolon
  2024-07-09  7:36 [PATCH] xfs: convert comma to semicolon Chen Ni
@ 2024-07-09 10:01 ` Dave Chinner
  2024-07-09 21:57 ` Darrick J. Wong
  2024-07-12 17:40 ` Chaitanya Kulkarni
  2 siblings, 0 replies; 13+ messages in thread
From: Dave Chinner @ 2024-07-09 10:01 UTC (permalink / raw)
  To: Chen Ni; +Cc: chandan.babu, djwong, linux-xfs, linux-kernel

On Tue, Jul 09, 2024 at 03:36:32PM +0800, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.

Fixes: 8f4b980ee67f ("xfs: pass the attr value to put_listent when possible")

> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>  fs/xfs/xfs_attr_list.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_attr_list.c b/fs/xfs/xfs_attr_list.c
> index 5c947e5ce8b8..7db386304875 100644
> --- a/fs/xfs/xfs_attr_list.c
> +++ b/fs/xfs/xfs_attr_list.c
> @@ -139,7 +139,7 @@ xfs_attr_shortform_list(
>  		sbp->name = sfe->nameval;
>  		sbp->namelen = sfe->namelen;
>  		/* These are bytes, and both on-disk, don't endian-flip */
> -		sbp->value = &sfe->nameval[sfe->namelen],
> +		sbp->value = &sfe->nameval[sfe->namelen];
>  		sbp->valuelen = sfe->valuelen;
>  		sbp->flags = sfe->flags;
>  		sbp->hash = xfs_attr_hashval(dp->i_mount, sfe->flags,

Looks good,

Reviewed-by: Dave Chinner <dchinner@redhat.com>

-- 
Dave Chinner
david@fromorbit.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: convert comma to semicolon
  2024-07-09  7:36 [PATCH] xfs: convert comma to semicolon Chen Ni
  2024-07-09 10:01 ` Dave Chinner
@ 2024-07-09 21:57 ` Darrick J. Wong
  2024-07-12 17:40 ` Chaitanya Kulkarni
  2 siblings, 0 replies; 13+ messages in thread
From: Darrick J. Wong @ 2024-07-09 21:57 UTC (permalink / raw)
  To: Chen Ni; +Cc: chandan.babu, linux-xfs, linux-kernel

On Tue, Jul 09, 2024 at 03:36:32PM +0800, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---

LGTM
Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

>  fs/xfs/xfs_attr_list.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_attr_list.c b/fs/xfs/xfs_attr_list.c
> index 5c947e5ce8b8..7db386304875 100644
> --- a/fs/xfs/xfs_attr_list.c
> +++ b/fs/xfs/xfs_attr_list.c
> @@ -139,7 +139,7 @@ xfs_attr_shortform_list(
>  		sbp->name = sfe->nameval;
>  		sbp->namelen = sfe->namelen;
>  		/* These are bytes, and both on-disk, don't endian-flip */
> -		sbp->value = &sfe->nameval[sfe->namelen],
> +		sbp->value = &sfe->nameval[sfe->namelen];
>  		sbp->valuelen = sfe->valuelen;
>  		sbp->flags = sfe->flags;
>  		sbp->hash = xfs_attr_hashval(dp->i_mount, sfe->flags,
> -- 
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: convert comma to semicolon
  2024-07-09  7:36 [PATCH] xfs: convert comma to semicolon Chen Ni
  2024-07-09 10:01 ` Dave Chinner
  2024-07-09 21:57 ` Darrick J. Wong
@ 2024-07-12 17:40 ` Chaitanya Kulkarni
  2 siblings, 0 replies; 13+ messages in thread
From: Chaitanya Kulkarni @ 2024-07-12 17:40 UTC (permalink / raw)
  To: Chen Ni, chandan.babu@oracle.com, djwong@kernel.org
  Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org

On 7/9/2024 12:36 AM, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Signed-off-by: Chen Ni<nichen@iscas.ac.cn>

Looks good.

Reviewed-by : Chaitanya Kulkarni <kch@nvidia.com>

-ck


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH] xfs: convert comma to semicolon
@ 2024-07-16  8:01 Chen Ni
  2024-07-18 15:27 ` Darrick J. Wong
  0 siblings, 1 reply; 13+ messages in thread
From: Chen Ni @ 2024-07-16  8:01 UTC (permalink / raw)
  To: chandan.babu, djwong, dchinner; +Cc: linux-xfs, linux-kernel, Chen Ni

Replace a comma between expression statements by a semicolon.

Fixes: 178b48d588ea ("xfs: remove the for_each_xbitmap_ helpers")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 fs/xfs/scrub/agheader_repair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/scrub/agheader_repair.c b/fs/xfs/scrub/agheader_repair.c
index 0dbc484b182f..2f98d90d7fd6 100644
--- a/fs/xfs/scrub/agheader_repair.c
+++ b/fs/xfs/scrub/agheader_repair.c
@@ -696,7 +696,7 @@ xrep_agfl_init_header(
 	 * step.
 	 */
 	xagb_bitmap_init(&af.used_extents);
-	af.agfl_bno = xfs_buf_to_agfl_bno(agfl_bp),
+	af.agfl_bno = xfs_buf_to_agfl_bno(agfl_bp);
 	xagb_bitmap_walk(agfl_extents, xrep_agfl_fill, &af);
 	error = xagb_bitmap_disunion(agfl_extents, &af.used_extents);
 	if (error)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: convert comma to semicolon
  2024-07-16  8:01 Chen Ni
@ 2024-07-18 15:27 ` Darrick J. Wong
  0 siblings, 0 replies; 13+ messages in thread
From: Darrick J. Wong @ 2024-07-18 15:27 UTC (permalink / raw)
  To: Chen Ni; +Cc: chandan.babu, dchinner, linux-xfs, linux-kernel

On Tue, Jul 16, 2024 at 04:01:12PM +0800, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Fixes: 178b48d588ea ("xfs: remove the for_each_xbitmap_ helpers")
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Looks ok,
Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

> ---
>  fs/xfs/scrub/agheader_repair.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/scrub/agheader_repair.c b/fs/xfs/scrub/agheader_repair.c
> index 0dbc484b182f..2f98d90d7fd6 100644
> --- a/fs/xfs/scrub/agheader_repair.c
> +++ b/fs/xfs/scrub/agheader_repair.c
> @@ -696,7 +696,7 @@ xrep_agfl_init_header(
>  	 * step.
>  	 */
>  	xagb_bitmap_init(&af.used_extents);
> -	af.agfl_bno = xfs_buf_to_agfl_bno(agfl_bp),
> +	af.agfl_bno = xfs_buf_to_agfl_bno(agfl_bp);
>  	xagb_bitmap_walk(agfl_extents, xrep_agfl_fill, &af);
>  	error = xagb_bitmap_disunion(agfl_extents, &af.used_extents);
>  	if (error)
> -- 
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH] xfs: convert comma to semicolon
@ 2024-09-03  7:39 Chen Ni
  2024-09-16 16:56 ` Darrick J. Wong
  0 siblings, 1 reply; 13+ messages in thread
From: Chen Ni @ 2024-09-03  7:39 UTC (permalink / raw)
  To: chandan.babu, djwong, aalbersh, willy; +Cc: linux-xfs, linux-kernel, Chen Ni

Replace a comma between expression statements by a semicolon.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 fs/xfs/libxfs/xfs_attr_remote.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/libxfs/xfs_attr_remote.c b/fs/xfs/libxfs/xfs_attr_remote.c
index 4c44ce1c8a64..5a55819f50f3 100644
--- a/fs/xfs/libxfs/xfs_attr_remote.c
+++ b/fs/xfs/libxfs/xfs_attr_remote.c
@@ -525,7 +525,7 @@ xfs_attr_rmtval_set_value(
 		ASSERT((map.br_startblock != DELAYSTARTBLOCK) &&
 		       (map.br_startblock != HOLESTARTBLOCK));
 
-		dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock),
+		dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock);
 		dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount);
 
 		error = xfs_buf_get(mp->m_ddev_targp, dblkno, dblkcnt, &bp);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: convert comma to semicolon
  2024-09-03  7:39 Chen Ni
@ 2024-09-16 16:56 ` Darrick J. Wong
  0 siblings, 0 replies; 13+ messages in thread
From: Darrick J. Wong @ 2024-09-16 16:56 UTC (permalink / raw)
  To: Chen Ni; +Cc: chandan.babu, aalbersh, willy, linux-xfs, linux-kernel

On Tue, Sep 03, 2024 at 03:39:31PM +0800, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Looks good,
Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

> ---
>  fs/xfs/libxfs/xfs_attr_remote.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/libxfs/xfs_attr_remote.c b/fs/xfs/libxfs/xfs_attr_remote.c
> index 4c44ce1c8a64..5a55819f50f3 100644
> --- a/fs/xfs/libxfs/xfs_attr_remote.c
> +++ b/fs/xfs/libxfs/xfs_attr_remote.c
> @@ -525,7 +525,7 @@ xfs_attr_rmtval_set_value(
>  		ASSERT((map.br_startblock != DELAYSTARTBLOCK) &&
>  		       (map.br_startblock != HOLESTARTBLOCK));
>  
> -		dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock),
> +		dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock);
>  		dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount);
>  
>  		error = xfs_buf_get(mp->m_ddev_targp, dblkno, dblkcnt, &bp);
> -- 
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH] xfs: Convert comma to semicolon
@ 2026-03-06  1:48 Chen Ni
  2026-03-06  8:41 ` Carlos Maiolino
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Chen Ni @ 2026-03-06  1:48 UTC (permalink / raw)
  To: cem; +Cc: linux-xfs, linux-kernel, Chen Ni

Using a ',' in place of a ';' can have unintended side effects.
Although that is not the case here, it seems best to use ';'
unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 fs/xfs/xfs_aops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index f279055fcea0..79ec98c8f299 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -792,7 +792,7 @@ xfs_vm_readahead(
 {
 	struct iomap_read_folio_ctx	ctx = { .rac = rac };
 
-	ctx.ops = xfs_get_iomap_read_ops(rac->mapping),
+	ctx.ops = xfs_get_iomap_read_ops(rac->mapping);
 	iomap_readahead(&xfs_read_iomap_ops, &ctx, NULL);
 }
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: Convert comma to semicolon
  2026-03-06  1:48 [PATCH] xfs: Convert " Chen Ni
@ 2026-03-06  8:41 ` Carlos Maiolino
  2026-03-06  8:48 ` Joarder, Souptick
  2026-03-10  8:52 ` Carlos Maiolino
  2 siblings, 0 replies; 13+ messages in thread
From: Carlos Maiolino @ 2026-03-06  8:41 UTC (permalink / raw)
  To: Chen Ni; +Cc: linux-xfs, linux-kernel

On Fri, Mar 06, 2026 at 09:48:00AM +0800, Chen Ni wrote:
> Using a ',' in place of a ';' can have unintended side effects.
> Although that is not the case here, it seems best to use ';'
> unless ',' is intended.
> 
> Found by inspection.
> No functional change intended.
> Compile tested only.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>  fs/xfs/xfs_aops.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
> index f279055fcea0..79ec98c8f299 100644
> --- a/fs/xfs/xfs_aops.c
> +++ b/fs/xfs/xfs_aops.c
> @@ -792,7 +792,7 @@ xfs_vm_readahead(
>  {
>  	struct iomap_read_folio_ctx	ctx = { .rac = rac };
>  
> -	ctx.ops = xfs_get_iomap_read_ops(rac->mapping),
> +	ctx.ops = xfs_get_iomap_read_ops(rac->mapping);
>  	iomap_readahead(&xfs_read_iomap_ops, &ctx, NULL);
>  }

Yup, looks good.
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>

>  
> -- 
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [PATCH] xfs: Convert comma to semicolon
  2026-03-06  1:48 [PATCH] xfs: Convert " Chen Ni
  2026-03-06  8:41 ` Carlos Maiolino
@ 2026-03-06  8:48 ` Joarder, Souptick
  2026-03-10  8:52 ` Carlos Maiolino
  2 siblings, 0 replies; 13+ messages in thread
From: Joarder, Souptick @ 2026-03-06  8:48 UTC (permalink / raw)
  To: Chen Ni, cem@kernel.org
  Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org



-----Original Message-----
From: Chen Ni <nichen@iscas.ac.cn> 
Sent: Friday, March 6, 2026 7:18 AM
To: cem@kernel.org
Cc: linux-xfs@vger.kernel.org; linux-kernel@vger.kernel.org; Chen Ni <nichen@iscas.ac.cn>
Subject: [PATCH] xfs: Convert comma to semicolon

Using a ',' in place of a ';' can have unintended side effects.
Although that is not the case here, it seems best to use ';'
unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

Acked-by: Souptick Joarder <souptick.joarder@hpe.com>
---
 fs/xfs/xfs_aops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index f279055fcea0..79ec98c8f299 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -792,7 +792,7 @@ xfs_vm_readahead(
 {
 	struct iomap_read_folio_ctx	ctx = { .rac = rac };
 
-	ctx.ops = xfs_get_iomap_read_ops(rac->mapping),
+	ctx.ops = xfs_get_iomap_read_ops(rac->mapping);
 	iomap_readahead(&xfs_read_iomap_ops, &ctx, NULL);  }
 
--
2.25.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: Convert comma to semicolon
  2026-03-06  1:48 [PATCH] xfs: Convert " Chen Ni
  2026-03-06  8:41 ` Carlos Maiolino
  2026-03-06  8:48 ` Joarder, Souptick
@ 2026-03-10  8:52 ` Carlos Maiolino
  2026-03-11  8:08   ` Chen Ni
  2 siblings, 1 reply; 13+ messages in thread
From: Carlos Maiolino @ 2026-03-10  8:52 UTC (permalink / raw)
  To: Chen Ni; +Cc: linux-xfs, linux-kernel

On Fri, Mar 06, 2026 at 09:48:00AM +0800, Chen Ni wrote:
> Using a ',' in place of a ';' can have unintended side effects.
> Although that is not the case here, it seems best to use ';'
> unless ',' is intended.
> 
> Found by inspection.
> No functional change intended.
> Compile tested only.

What tree HEAD did you apply this on?

I can't find where this code exists. I'm assuming you sent it against
some tree other than XFS's tree?

> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>  fs/xfs/xfs_aops.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
> index f279055fcea0..79ec98c8f299 100644
> --- a/fs/xfs/xfs_aops.c
> +++ b/fs/xfs/xfs_aops.c
> @@ -792,7 +792,7 @@ xfs_vm_readahead(
>  {
>  	struct iomap_read_folio_ctx	ctx = { .rac = rac };
>  
> -	ctx.ops = xfs_get_iomap_read_ops(rac->mapping),
> +	ctx.ops = xfs_get_iomap_read_ops(rac->mapping);
>  	iomap_readahead(&xfs_read_iomap_ops, &ctx, NULL);
>  }
>  
> -- 
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH] xfs: Convert comma to semicolon
  2026-03-10  8:52 ` Carlos Maiolino
@ 2026-03-11  8:08   ` Chen Ni
  0 siblings, 0 replies; 13+ messages in thread
From: Chen Ni @ 2026-03-11  8:08 UTC (permalink / raw)
  To: cem; +Cc: linux-kernel, linux-xfs

On Tue, Mar 10, 2026 at 09:52:15AM +0100, Carlos Maiolino wrote:
> What tree HEAD did you apply this on?
> 
> I can't find where this code exists. I'm assuming you sent it against
> some tree other than XFS's tree?

Hi Carlos,

You are correct. This patch was based on linux-next commit 7407c0fbfa90,
which is not present in the current XFS tree.

Please disregard.

Best regards,
Chen Ni


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-03-11  8:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09  7:36 [PATCH] xfs: convert comma to semicolon Chen Ni
2024-07-09 10:01 ` Dave Chinner
2024-07-09 21:57 ` Darrick J. Wong
2024-07-12 17:40 ` Chaitanya Kulkarni
  -- strict thread matches above, loose matches on Subject: below --
2024-07-16  8:01 Chen Ni
2024-07-18 15:27 ` Darrick J. Wong
2024-09-03  7:39 Chen Ni
2024-09-16 16:56 ` Darrick J. Wong
2026-03-06  1:48 [PATCH] xfs: Convert " Chen Ni
2026-03-06  8:41 ` Carlos Maiolino
2026-03-06  8:48 ` Joarder, Souptick
2026-03-10  8:52 ` Carlos Maiolino
2026-03-11  8:08   ` Chen Ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox