[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <175798160921.389252.14773848298551135362.stgit@frogsfrogsfrogs>
Date: Mon, 15 Sep 2025 17:52:44 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: tytso@....edu
Cc: miklos@...redi.hu, neal@...pa.dev, amir73il@...il.com,
linux-fsdevel@...r.kernel.org, linux-ext4@...r.kernel.org, John@...ves.net,
bernd@...ernd.com, joannelkoong@...il.com
Subject: [PATCH 08/21] cache: disable debugging
From: Darrick J. Wong <djwong@...nel.org>
Not sure why debugging is turned on by default in the xfsprogs cache
code, but let's turn it off.
Signed-off-by: "Darrick J. Wong" <djwong@...nel.org>
---
lib/support/cache.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/support/cache.c b/lib/support/cache.c
index fe04f62f262aaa..08e0b484cca298 100644
--- a/lib/support/cache.c
+++ b/lib/support/cache.c
@@ -17,9 +17,8 @@
#include "cache.h"
#include "xbitops.h"
-#define CACHE_DEBUG 1
#undef CACHE_DEBUG
-#define CACHE_DEBUG 1
+/* #define CACHE_DEBUG 1 */
#undef CACHE_ABORT
/* #define CACHE_ABORT 1 */
@@ -28,6 +27,8 @@
#ifdef CACHE_DEBUG
# include <assert.h>
# define ASSERT(x) assert(x)
+#else
+# define ASSERT(x) do { } while (0)
#endif
static unsigned int cache_generic_bulkrelse(struct cache *, struct list_head *);
Powered by blists - more mailing lists