mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
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: 1d191b4ca5
("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
This commit is contained in:
parent
7869738b69
commit
417b8af2e3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user