summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@linux.alibaba.com>2025-06-20 23:31:08 +0800
committerGao Xiang <hsiangkao@linux.alibaba.com>2025-06-20 23:41:12 +0800
commit417b8af2e30d7f131682a893ad79c506fd39c624 (patch)
tree65dea68a44951948c06f5cbbf19df033469a1024
parent7869738b6908eec7755818aaf6f3aa068b2f0e1b (diff)
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") Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Link: https://lore.kernel.org/r/20250620153108.1368029-1-hsiangkao@linux.alibaba.com
-rw-r--r--fs/erofs/zmap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/erofs/zmap.c b/fs/erofs/zmap.c
index 6afcb054780d..0bebc6e3a4d7 100644
--- a/fs/erofs/zmap.c
+++ b/fs/erofs/zmap.c
@@ -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;
}