2020-12-11 16:54:32

by Zheng Yongjun

[permalink] [raw]
Subject: [PATCH -next] fs/xfs: convert comma to semicolon

Replace a comma between expression statements by a semicolon.

Signed-off-by: Zheng Yongjun <[email protected]>
---
fs/xfs/libxfs/xfs_btree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
index 2d25bab68764..51dbff9b0908 100644
--- a/fs/xfs/libxfs/xfs_btree.c
+++ b/fs/xfs/libxfs/xfs_btree.c
@@ -4070,7 +4070,7 @@ xfs_btree_delrec(
* surviving block, and log it.
*/
xfs_btree_set_numrecs(left, lrecs + rrecs);
- xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB),
+ xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB);
xfs_btree_set_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB);
xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS | XFS_BB_RIGHTSIB);

--
2.22.0


2020-12-11 18:14:51

by Brian Foster

[permalink] [raw]
Subject: Re: [PATCH -next] fs/xfs: convert comma to semicolon

On Fri, Dec 11, 2020 at 04:41:12PM +0800, Zheng Yongjun wrote:
> Replace a comma between expression statements by a semicolon.
>
> Signed-off-by: Zheng Yongjun <[email protected]>
> ---

Reviewed-by: Brian Foster <[email protected]>

> fs/xfs/libxfs/xfs_btree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
> index 2d25bab68764..51dbff9b0908 100644
> --- a/fs/xfs/libxfs/xfs_btree.c
> +++ b/fs/xfs/libxfs/xfs_btree.c
> @@ -4070,7 +4070,7 @@ xfs_btree_delrec(
> * surviving block, and log it.
> */
> xfs_btree_set_numrecs(left, lrecs + rrecs);
> - xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB),
> + xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB);
> xfs_btree_set_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB);
> xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS | XFS_BB_RIGHTSIB);
>
> --
> 2.22.0
>

2020-12-11 18:52:15

by Joe Perches

[permalink] [raw]
Subject: Re: [PATCH -next] fs/xfs: convert comma to semicolon

On Fri, 2020-12-11 at 16:17 +0000, David Laight wrote:
> From: Eric Sandeen
> > Sent: 11 December 2020 15:51
> >
> > On 12/11/20 2:41 AM, Zheng Yongjun wrote:
> > > Replace a comma between expression statements by a semicolon.
> > >
> > > Signed-off-by: Zheng Yongjun <[email protected]>
> >
> > hah, that's an old one. Harmless though, AFAICT.
> >
> > this fixes 91cca5df9bc8 ("[XFS] implement generic xfs_btree_delete/delrec")
> > if we dare add that tag ;)
>
> It doesn't 'fix' anything, it is just stylistic.
> Completely harmless in every sense.

True, so it's not necessary to add a fixes tag here.

The only time a comma->semicolon conversion could 'fix'
something is when it's unintentionally used after something
like an if statement

if (foo)
bar(),
baz();

where now baz() is performed only when the if condition is true
but the indentation indicates that it should always be performed.



2020-12-12 16:27:34

by David Laight

[permalink] [raw]
Subject: RE: [PATCH -next] fs/xfs: convert comma to semicolon

From: Eric Sandeen
> Sent: 11 December 2020 15:51
>
> On 12/11/20 2:41 AM, Zheng Yongjun wrote:
> > Replace a comma between expression statements by a semicolon.
> >
> > Signed-off-by: Zheng Yongjun <[email protected]>
>
> hah, that's an old one. Harmless though, AFAICT.
>
> this fixes 91cca5df9bc8 ("[XFS] implement generic xfs_btree_delete/delrec")
> if we dare add that tag ;)

It doesn't 'fix' anything, it is just stylistic.
Completely harmless in every sense.

David

>
> Reviewed-by: Eric Sandeen <[email protected]>
>
> > ---
> > fs/xfs/libxfs/xfs_btree.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
> > index 2d25bab68764..51dbff9b0908 100644
> > --- a/fs/xfs/libxfs/xfs_btree.c
> > +++ b/fs/xfs/libxfs/xfs_btree.c
> > @@ -4070,7 +4070,7 @@ xfs_btree_delrec(
> > * surviving block, and log it.
> > */
> > xfs_btree_set_numrecs(left, lrecs + rrecs);
> > - xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB),
> > + xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB);
> > xfs_btree_set_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB);
> > xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS | XFS_BB_RIGHTSIB);
> >
> >

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

2020-12-12 18:55:16

by Eric Sandeen

[permalink] [raw]
Subject: Re: [PATCH -next] fs/xfs: convert comma to semicolon

On 12/11/20 2:41 AM, Zheng Yongjun wrote:
> Replace a comma between expression statements by a semicolon.
>
> Signed-off-by: Zheng Yongjun <[email protected]>

hah, that's an old one. Harmless though, AFAICT.

this fixes 91cca5df9bc8 ("[XFS] implement generic xfs_btree_delete/delrec")
if we dare add that tag ;)

Reviewed-by: Eric Sandeen <[email protected]>

> ---
> fs/xfs/libxfs/xfs_btree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
> index 2d25bab68764..51dbff9b0908 100644
> --- a/fs/xfs/libxfs/xfs_btree.c
> +++ b/fs/xfs/libxfs/xfs_btree.c
> @@ -4070,7 +4070,7 @@ xfs_btree_delrec(
> * surviving block, and log it.
> */
> xfs_btree_set_numrecs(left, lrecs + rrecs);
> - xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB),
> + xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB);
> xfs_btree_set_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB);
> xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS | XFS_BB_RIGHTSIB);
>
>

2021-01-20 19:57:31

by Darrick J. Wong

[permalink] [raw]
Subject: Re: [PATCH -next] fs/xfs: convert comma to semicolon

On Fri, Dec 11, 2020 at 04:41:12PM +0800, Zheng Yongjun wrote:
> Replace a comma between expression statements by a semicolon.
>
> Signed-off-by: Zheng Yongjun <[email protected]>

Apparently I forgot to ack this before merging it...

Reviewed-by: Darrick J. Wong <[email protected]>

--D

> ---
> fs/xfs/libxfs/xfs_btree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
> index 2d25bab68764..51dbff9b0908 100644
> --- a/fs/xfs/libxfs/xfs_btree.c
> +++ b/fs/xfs/libxfs/xfs_btree.c
> @@ -4070,7 +4070,7 @@ xfs_btree_delrec(
> * surviving block, and log it.
> */
> xfs_btree_set_numrecs(left, lrecs + rrecs);
> - xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB),
> + xfs_btree_get_sibling(cur, right, &cptr, XFS_BB_RIGHTSIB);
> xfs_btree_set_sibling(cur, left, &cptr, XFS_BB_RIGHTSIB);
> xfs_btree_log_block(cur, lbp, XFS_BB_NUMRECS | XFS_BB_RIGHTSIB);
>
> --
> 2.22.0
>