From: hexingwei001@208suo.com
To: djwong@kernel.org, dchinner@redhat.com, allison.henderson@oracle.com
Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Fwd: [PATCH] fs/xfs/libxfs/xfs_bmap.c: space required after that ',' and spaces required around that '='
Date: Wed, 14 Jun 2023 17:06:12 +0800 [thread overview]
Message-ID: <3d224c797c33a98a3d2d1d888d00cb0d@208suo.com> (raw)
In-Reply-To: <20230614090248.90219-1-panzhiai@cdjrlc.com>
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@208suo.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 */
parent reply other threads:[~2023-06-14 9:06 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20230614090248.90219-1-panzhiai@cdjrlc.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3d224c797c33a98a3d2d1d888d00cb0d@208suo.com \
--to=hexingwei001@208suo.com \
--cc=allison.henderson@oracle.com \
--cc=dchinner@redhat.com \
--cc=djwong@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®