[<prev] [next>] [day] [month] [year] [list]
Message-ID: <3d224c797c33a98a3d2d1d888d00cb0d@208suo.com>
Date: Wed, 14 Jun 2023 17:06:12 +0800
From: hexingwei001@...suo.com
To: djwong@...nel.org, dchinner@...hat.com,
allison.henderson@...cle.com
Cc: linux-xfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Fwd: [PATCH] fs/xfs/libxfs/xfs_bmap.c: space required after that ','
and spaces required around that '='
Add missing spaces to clear checkpatch errors:
fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ','
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ','
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ','
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ','
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ','
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:1421: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:1425: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:1972: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:2499: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:2500: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:2648: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:3054: ERROR: space required after that ','
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:3089: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:3091: ERROR: spaces required around that '='
(ctx:VxV).
fs/xfs/libxfs/xfs_bmap.c:5012: ERROR: spaces required around that '='
(ctx:VxV).
Signed-off-by: Xingwei He <hexingwei001@...suo.com>
---
fs/xfs/libxfs/xfs_bmap.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index 9cabcd3768e5..24fe1568c9d2 100644
--- a/fs/xfs/libxfs/xfs_bmap.c
+++ b/fs/xfs/libxfs/xfs_bmap.c
@@ -1418,11 +1418,11 @@ xfs_bmap_add_extent_delay_real(
xfs_fileoff_t new_endoff; /* end offset of new entry */
xfs_bmbt_irec_t r[3]; /* neighbor extent entries */
/* left is 0, right is 1, prev is 2 */
- int rval= 0 ; /* return value (logging flags) */
+ int rval = 0 ; /* return value (logging flags) */
uint32_t state = xfs_bmap_fork_to_state(whichfork);
xfs_filblks_t da_new; /* new count del alloc blocks used */
xfs_filblks_t da_old; /* old count del alloc blocks used */
- xfs_filblks_t temp= 0 ; /* value for da_new calculations
*/
+ xfs_filblks_t temp = 0 ; /* value for da_new calculations
*/
int tmp_rval; /* partial logging flags */
struct xfs_bmbt_irec old;
@@ -1969,7 +1969,7 @@ xfs_bmap_add_extent_unwritten_real(
xfs_fileoff_t new_endoff; /* end offset of new entry */
xfs_bmbt_irec_t r[3]; /* neighbor extent entries */
/* left is 0, right is 1, prev is 2 */
- int rval= 0 ; /* return value (logging flags) */
+ int rval = 0 ; /* return value (logging flags) */
uint32_t state = xfs_bmap_fork_to_state(whichfork);
struct xfs_mount *mp = ip->i_mount;
struct xfs_bmbt_irec old;
@@ -2496,8 +2496,8 @@ xfs_bmap_add_extent_hole_delay(
{
struct xfs_ifork *ifp; /* inode fork pointer */
xfs_bmbt_irec_t left; /* left neighbor extent entry */
- xfs_filblks_t newlen= 0 ; /* new indirect size */
- xfs_filblks_t oldlen= 0 ; /* old indirect size */
+ xfs_filblks_t newlen = 0 ; /* new indirect size */
+ xfs_filblks_t oldlen = 0 ; /* old indirect size */
xfs_bmbt_irec_t right; /* right neighbor extent entry */
uint32_t state = xfs_bmap_fork_to_state(whichfork);
xfs_filblks_t temp; /* temp for indirect calculations */
@@ -2645,7 +2645,7 @@ xfs_bmap_add_extent_hole_real(
int i; /* temp state */
xfs_bmbt_irec_t left; /* left neighbor extent entry */
xfs_bmbt_irec_t right; /* right neighbor extent entry */
- int rval= 0 ; /* return value (logging flags) */
+ int rval = 0 ; /* return value (logging flags) */
uint32_t state = xfs_bmap_fork_to_state(whichfork);
struct xfs_bmbt_irec old;
@@ -3086,9 +3086,9 @@ xfs_bmap_adjacent(
*/
else if (!ap->eof) {
xfs_fsblock_t gotbno; /* right side block number */
- xfs_fsblock_t gotdiff= 0 ; /* right side difference */
+ xfs_fsblock_t gotdiff = 0 ; /* right side difference */
xfs_fsblock_t prevbno; /* left side block number */
- xfs_fsblock_t prevdiff= 0 ; /* left side difference */
+ xfs_fsblock_t prevdiff = 0 ; /* left side difference */
/*
* If there's a previous (left) block, select a requested
@@ -5009,7 +5009,7 @@ xfs_bmap_del_extent_real(
int whichfork, /* data or attr fork */
uint32_t bflags) /* bmapi flags */
{
- xfs_fsblock_t del_endblock= 0; /* first block past del */
+ xfs_fsblock_t del_endblock = 0; /* first block past del
*/
xfs_fileoff_t del_endoff; /* first offset past del */
int do_fx; /* free extent at end of routine */
int error; /* error return value */
Powered by blists - more mailing lists