mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
[LogFS] Move assertion
The assertion is valid independently of the condition. Signed-off-by: Joern Engel <joern@logfs.org>
This commit is contained in:
parent
d3a03f8031
commit
ead88af5f5
1 changed files with 1 additions and 1 deletions
|
@ -612,9 +612,9 @@ static size_t __logfs_write_je(struct super_block *sb, void *buf, u16 type,
|
|||
if (len == 0)
|
||||
return logfs_write_header(super, header, 0, type);
|
||||
|
||||
BUG_ON(len > sb->s_blocksize);
|
||||
compr_len = logfs_compress(buf, data, len, sb->s_blocksize);
|
||||
if (compr_len < 0 || type == JE_ANCHOR) {
|
||||
BUG_ON(len > sb->s_blocksize);
|
||||
memcpy(data, buf, len);
|
||||
compr_len = len;
|
||||
compr = COMPR_NONE;
|
||||
|
|
Loading…
Reference in a new issue