[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176246795712.2864310.1041788708806001570.stgit@frogsfrogsfrogs>
Date: Thu, 06 Nov 2025 14:45:11 -0800
From: "Darrick J. Wong" <djwong@...nel.org>
To: tytso@....edu
Cc: linux-ext4@...r.kernel.org
Subject: [PATCH 08/23] 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