Re: [PATCH v2] xfs_bmap_util: use swap macro

2018-07-11 Thread Darrick J. Wong
On Mon, Jul 09, 2018 at 04:02:59PM -0500, Gustavo A. R. Silva wrote: > Make use of the swap macro and remove some unnecessary variables. > This makes the code easier to read and maintain. Also, reduces the > stack usage. > > This code was detected with the help of Coccinelle. > > Signed-off-by:

Re: [PATCH v2] xfs_bmap_util: use swap macro

2018-07-11 Thread Darrick J. Wong
On Mon, Jul 09, 2018 at 04:02:59PM -0500, Gustavo A. R. Silva wrote: > Make use of the swap macro and remove some unnecessary variables. > This makes the code easier to read and maintain. Also, reduces the > stack usage. > > This code was detected with the help of Coccinelle. > > Signed-off-by:

[PATCH v2] xfs_bmap_util: use swap macro

2018-07-09 Thread Gustavo A. R. Silva
Make use of the swap macro and remove some unnecessary variables. This makes the code easier to read and maintain. Also, reduces the stack usage. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- Changes in v2 - Use swap in a couple more of places.

[PATCH v2] xfs_bmap_util: use swap macro

2018-07-09 Thread Gustavo A. R. Silva
Make use of the swap macro and remove some unnecessary variables. This makes the code easier to read and maintain. Also, reduces the stack usage. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- Changes in v2 - Use swap in a couple more of places.