Commit 6c69494f authored by Joern Engel's avatar Joern Engel Committed by Prasad Joshi

logfs: remove useless BUG_ON

It prevents write sizes >4k.
Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent 756ccb3c
...@@ -612,7 +612,6 @@ static size_t __logfs_write_je(struct super_block *sb, void *buf, u16 type, ...@@ -612,7 +612,6 @@ static size_t __logfs_write_je(struct super_block *sb, void *buf, u16 type,
if (len == 0) if (len == 0)
return logfs_write_header(super, header, 0, type); return logfs_write_header(super, header, 0, type);
BUG_ON(len > sb->s_blocksize);
compr_len = logfs_compress(buf, data, len, sb->s_blocksize); compr_len = logfs_compress(buf, data, len, sb->s_blocksize);
if (compr_len < 0 || type == JE_ANCHOR) { if (compr_len < 0 || type == JE_ANCHOR) {
memcpy(data, buf, len); memcpy(data, buf, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment