Skip to contentSkip to conversation

befs: Removed incorrect check

PATCH Superseded Axel Dörfler 1 participant 1 message Feb 1, 2019 Befs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 befs: Removed incorrect check

The relation between ag_shift and blocks_per_ag is a bit more complex, and also depends on the fs block size.
Since blocks_per_ag is not even being used, simply omit the check.

---
 fs/befs/super.c | 7 -------
 1 file changed, 7 deletions(-)
fs/befs/super.c +0 -7
index 7c50025c9..29fa37557 100644
@@ -99,13 +99,6 @@ befs_check_sb(struct super_block *sb)
 		return BEFS_ERR;
 	}
 
-
-	/* ag_shift also encodes the same information as blocks_per_ag in a
-	 * different way, non-fatal consistency check
-	 */
-	if ((1 << befs_sb->ag_shift) != befs_sb->blocks_per_ag)
-		befs_error(sb, "ag_shift disagrees with blocks_per_ag.");
-
 	if (befs_sb->log_start != befs_sb->log_end ||
 	    befs_sb->flags == BEFS_DIRTY) {
 		befs_error(sb, "Filesystem not clean! There are blocks in the "
Signature · 1 line
2.17.1