mbox series

[0/4] Small coding style cleanups

Message ID 20191018095823.15282-1-jthumshirn@suse.de (mailing list archive)
Headers show
Series Small coding style cleanups | expand

Message

Johannes Thumshirn Oct. 18, 2019, 9:58 a.m. UTC
Here are some minor coding style cleanups which I think are neat as they make
some functions a bit easier to read.

None of these patches is really needed though.

The patches have no regressions with regrads to the basline
btrfs-devel/misc-next on an xfstests -g auto run.

A gitweb preview can be found at
https://git.kernel.org/pub/scm/linux/kernel/git/jth/linux.git/log/?h=btrfs-raid-cleanups

Note I did rebase the branch because one patch did not have a changelog.

Johannes Thumshirn (4):
  btrfs: reduce indentation in lock_stripe_add
  btrfs: remove pointless local variable in lock_stripe_add()
  btrfs: reduce indentation in btrfs_may_alloc_data_chunk
  btrfs: remove pointless indentation in btrfs_read_sys_array()

 fs/btrfs/raid56.c  |  95 ++++++++++++++++++++++-----------------------
 fs/btrfs/volumes.c | 112 +++++++++++++++++++++++++++--------------------------
 2 files changed, 103 insertions(+), 104 deletions(-)

Comments

Nikolay Borisov Oct. 18, 2019, 12:02 p.m. UTC | #1
On 18.10.19 г. 12:58 ч., Johannes Thumshirn wrote:
> Here are some minor coding style cleanups which I think are neat as they make
> some functions a bit easier to read.
> 
> None of these patches is really needed though.
> 
> The patches have no regressions with regrads to the basline
> btrfs-devel/misc-next on an xfstests -g auto run.
> 
> A gitweb preview can be found at
> https://git.kernel.org/pub/scm/linux/kernel/git/jth/linux.git/log/?h=btrfs-raid-cleanups
> 
> Note I did rebase the branch because one patch did not have a changelog.
> 
> Johannes Thumshirn (4):
>   btrfs: reduce indentation in lock_stripe_add
>   btrfs: remove pointless local variable in lock_stripe_add()
>   btrfs: reduce indentation in btrfs_may_alloc_data_chunk
>   btrfs: remove pointless indentation in btrfs_read_sys_array()
> 
>  fs/btrfs/raid56.c  |  95 ++++++++++++++++++++++-----------------------
>  fs/btrfs/volumes.c | 112 +++++++++++++++++++++++++++--------------------------
>  2 files changed, 103 insertions(+), 104 deletions(-)
> 

Patches 2-4 LGTM you can add, :

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Johannes Thumshirn Oct. 21, 2019, 8:06 a.m. UTC | #2
On 18/10/2019 14:02, Nikolay Borisov wrote:
[...]

> Patches 2-4 LGTM you can add, :

What's wrong with 1/4?
Nikolay Borisov Oct. 21, 2019, 12:32 p.m. UTC | #3
On 21.10.19 г. 11:06 ч., Johannes Thumshirn wrote:
> On 18/10/2019 14:02, Nikolay Borisov wrote:
> [...]
> 
>> Patches 2-4 LGTM you can add, :
> 
> What's wrong with 1/4?

Nothing per-se but it looked ugly and my brain refused to make sense of
it so I haven't really reviewed it :) .

> 
> 
>
Johannes Thumshirn Oct. 21, 2019, 12:42 p.m. UTC | #4
On 21/10/2019 14:32, Nikolay Borisov wrote:
> 
> 
> On 21.10.19 г. 11:06 ч., Johannes Thumshirn wrote:
>> On 18/10/2019 14:02, Nikolay Borisov wrote:
>> [...]
>>
>>> Patches 2-4 LGTM you can add, :
>>
>> What's wrong with 1/4?
> 
> Nothing per-se but it looked ugly and my brain refused to make sense of
> it so I haven't really reviewed it :) .

It will look less ugly after the patch is applied ;-)

https://git.kernel.org/pub/scm/linux/kernel/git/jth/linux.git/tree/fs/btrfs/raid56.c?h=btrfs-raid-cleanups&id=ad33a49606b6f31c7fe20aa089f5603ad3065bd5#n684
David Sterba Oct. 21, 2019, 1:38 p.m. UTC | #5
On Fri, Oct 18, 2019 at 11:58:19AM +0200, Johannes Thumshirn wrote:
> Here are some minor coding style cleanups which I think are neat as they make
> some functions a bit easier to read.
> 
> None of these patches is really needed though.
> 
> The patches have no regressions with regrads to the basline
> btrfs-devel/misc-next on an xfstests -g auto run.
> 
> A gitweb preview can be found at
> https://git.kernel.org/pub/scm/linux/kernel/git/jth/linux.git/log/?h=btrfs-raid-cleanups
> 
> Note I did rebase the branch because one patch did not have a changelog.
> 
> Johannes Thumshirn (4):
>   btrfs: reduce indentation in lock_stripe_add
>   btrfs: remove pointless local variable in lock_stripe_add()
>   btrfs: reduce indentation in btrfs_may_alloc_data_chunk
>   btrfs: remove pointless indentation in btrfs_read_sys_array()

Added to misc-next, thanks.