]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
libxfs: fix XFS_STATS_DEC
authorDarrick J. Wong <djwong@kernel.org>
Tue, 3 Mar 2026 18:48:55 +0000 (10:48 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 8 Apr 2026 19:37:51 +0000 (21:37 +0200)
This macro only takes two arguments in the kernel, so fix the definition
here too.  All existing callsites #if 0 it into oblivion which is why
we've never noticed, but an upcoming patch in the libxfs sync will not
be so lucky.

Cc: <linux-xfs@vger.kernel.org> # v4.9.0
Fixes: ece930fa14a343 ("xfs: refactor xfs_bunmapi_cow")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/libxfs_priv.h

index 5474865a673e9a0a28c5fc2f2d423015953bd0ad..f72f07fabdf21ea48e9ca02201f2017e6687fb0a 100644 (file)
@@ -183,7 +183,7 @@ enum ce { CE_DEBUG, CE_CONT, CE_NOTE, CE_WARN, CE_ALERT, CE_PANIC };
 #define XFS_ILOCK_SHARED               0
 #define XFS_IOLOCK_EXCL                        0
 #define XFS_STATS_INC(mp, count)       do { (mp) = (mp); } while (0)
-#define XFS_STATS_DEC(mp, count, x)    do { (mp) = (mp); } while (0)
+#define XFS_STATS_DEC(mp, count)       do { (mp) = (mp); } while (0)
 #define XFS_STATS_ADD(mp, count, x)    do { (mp) = (mp); } while (0)
 #define XFS_TEST_ERROR(a,b)            (false)