Skip to contentSkip to conversation

erofs: remove a superfluous check for encoded extents

PATCH New Gao Xiang 1 participant 1 message Jun 20, 2025 EROFS file system

lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH 1/1 erofs: remove a superfluous check for encoded extents

It is possible when an inode is split into segments for multi-threaded compression, and the tail extent of a segment could also be small.

Fixes 1d191b4ca51d ("erofs: implement encoded extent metadata")
---
 fs/erofs/zmap.c | 6 ------
 1 file changed, 6 deletions(-)
fs/erofs/zmap.c +0 -6
index 6afcb054780d..0bebc6e3a4d7 100644
@@ -639,12 +639,6 @@ static int z_erofs_map_blocks_ext(struct inode *inode,
 		}
 	}
 	map->m_llen = lend - map->m_la;
-	if (!last && map->m_llen < sb->s_blocksize) {
-		erofs_err(sb, "extent too small %llu @ offset %llu of nid %llu",
-			  map->m_llen, map->m_la, vi->nid);
-		DBG_BUGON(1);
-		return -EFSCORRUPTED;
-	}
 	return 0;
 }
 
Signature · 1 line
2.43.5