projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7869738
)
erofs: remove a superfluous check for encoded extents
author
Gao Xiang
<hsiangkao@linux.alibaba.com>
Fri, 20 Jun 2025 15:31:08 +0000
(23:31 +0800)
committer
Gao Xiang
<hsiangkao@linux.alibaba.com>
Fri, 20 Jun 2025 15:41:12 +0000
(23:41 +0800)
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
fs/erofs/zmap.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/erofs/zmap.c
b/fs/erofs/zmap.c
index 6afcb054780d4185f116102caee9871799b91d03..0bebc6e3a4d7dd8d1c25826951df7113fcf5d332 100644
(file)
--- 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;
}