]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs: fix spacing style issues in xfs_alloc.c
authorShin Seong-jun <shinsj4653@gmail.com>
Sun, 22 Feb 2026 22:41:10 +0000 (14:41 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 8 Apr 2026 19:39:56 +0000 (21:39 +0200)
Source kernel commit: 0ead3b72469e52ca02946b2e5b35fff38bfa061f

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>
libxfs/xfs_alloc.c

index 9f92bd77fad76cb86b19cb7ae6c1d93b5c9751a2..695ed830d139fe4db0c6c25703fe06e44b880f74 100644 (file)
@@ -372,8 +372,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;
 
@@ -573,8 +573,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;