diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index bedfff5d45fa..997ca4b32e87 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -990,7 +990,7 @@ hitted: */ tight &= (fe->mode > Z_EROFS_PCLUSTER_FOLLOWED_NOINPLACE); - cur = end - min_t(unsigned int, offset + end - map->m_la, end); + cur = end - min_t(erofs_off_t, offset + end - map->m_la, end); if (!(map->m_flags & EROFS_MAP_MAPPED)) { zero_user_segment(page, cur, end); goto next_part;