Skip to contentSkip to conversation

xfs: Comment out unreachable code within xchk_fscounters()

PATCH Superseded [email protected] 1 participant 2 messages Jun 6, 2023 XFS filesystem

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 xfs: Comment out unreachable code within xchk_fscounters()

From: Carlos Maiolino <[email protected]>

Comment the code out so kernel test robot stop complaining about it every single test build.

---
 fs/xfs/scrub/fscounters.c | 2 ++
 1 file changed, 2 insertions(+)
fs/xfs/scrub/fscounters.c +2 -0
index e382a35e98d88..b1148bea7fabc 100644
@@ -452,6 +452,7 @@ xchk_fscounters(
 	 */
 	return 0;
 
+#if 0
 	/*
 	 * If ifree exceeds icount by more than the minimum variance then
 	 * something's probably wrong with the counters.
@@ -489,4 +490,5 @@ xchk_fscounters(
 		xchk_set_corrupt(sc);
 
 	return 0;
+#endif
 }
Signature · 1 line
2.30.2
author maintainer
#1 lore raw
Quoted 4 lines · On Tue, Jun 06, 2023 at 03:37:10PM +0200, [email protected] wrote:

From: Carlos Maiolino <[email protected]>

Comment the code out so kernel test robot stop complaining about it every single test build.

Please, ignore this, as commenting out the unreachable code created another warnings. I'll fix it and resend the patch. Sorry the noise.

Quoted 28 lines
---
 fs/xfs/scrub/fscounters.c | 2 ++
 1 file changed, 2 insertions(+)
fs/xfs/scrub/fscounters.c +2 -1
index e382a35e98d88..b1148bea7fabc 100644
@@ -452,6 +452,7 @@ xchk_fscounters(
 	 */
 	return 0;
 
+#if 0
 	/*
 	 * If ifree exceeds icount by more than the minimum variance then
 	 * something's probably wrong with the counters.
@@ -489,4 +490,5 @@ xchk_fscounters(
 		xchk_set_corrupt(sc);
 
 	return 0;
+#endif
 }
--

2.30.2