]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: fix spacing style issues in xfs_alloc.c
authorShin Seong-jun <shinsj4653@gmail.com>
Fri, 23 Jan 2026 15:04:32 +0000 (00:04 +0900)
committerCarlos Maiolino <cem@kernel.org>
Thu, 29 Jan 2026 09:57:18 +0000 (10:57 +0100)
Fix checkpatch.pl errors regarding missing spaces around assignment
operators in xfs_alloc_compute_diff() and xfs_alloc_fixup_trees().

Adhere to the Linux kernel coding style by ensuring spaces are placed
around the assignment operator '='.

Signed-off-by: Shin Seong-jun <shinsj4653@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_alloc.c

index 5bec3365a99a0e54d311b18d2600a9f5268810d5..d99602bcc16ffe97c5c8b0912c76c4c4dd29fa72 100644 (file)
@@ -376,8 +376,8 @@ xfs_alloc_compute_diff(
        xfs_agblock_t   freeend;        /* end of freespace extent */
        xfs_agblock_t   newbno1;        /* return block number */
        xfs_agblock_t   newbno2;        /* other new block number */
-       xfs_extlen_t    newlen1=0;      /* length with newbno1 */
-       xfs_extlen_t    newlen2=0;      /* length with newbno2 */
+       xfs_extlen_t    newlen1 = 0;    /* length with newbno1 */
+       xfs_extlen_t    newlen2 = 0;    /* length with newbno2 */
        xfs_agblock_t   wantend;        /* end of target extent */
        bool            userdata = datatype & XFS_ALLOC_USERDATA;
 
@@ -577,8 +577,8 @@ xfs_alloc_fixup_trees(
        int             i;              /* operation results */
        xfs_agblock_t   nfbno1;         /* first new free startblock */
        xfs_agblock_t   nfbno2;         /* second new free startblock */
-       xfs_extlen_t    nflen1=0;       /* first new free length */
-       xfs_extlen_t    nflen2=0;       /* second new free length */
+       xfs_extlen_t    nflen1 = 0;     /* first new free length */
+       xfs_extlen_t    nflen2 = 0;     /* second new free length */
        struct xfs_mount *mp;
        bool            fixup_longest = false;