Skip to content

Commit 417b8af

Browse files
committed
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: 1d191b4 ("erofs: implement encoded extent metadata") Signed-off-by: Gao Xiang <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7869738 commit 417b8af

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/erofs/zmap.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,6 @@ static int z_erofs_map_blocks_ext(struct inode *inode,
639639
}
640640
}
641641
map->m_llen = lend - map->m_la;
642-
if (!last && map->m_llen < sb->s_blocksize) {
643-
erofs_err(sb, "extent too small %llu @ offset %llu of nid %llu",
644-
map->m_llen, map->m_la, vi->nid);
645-
DBG_BUGON(1);
646-
return -EFSCORRUPTED;
647-
}
648642
return 0;
649643
}
650644

0 commit comments

Comments
 (0)