Skip to content

Commit

Permalink
logfs: remove useless BUG_ON
Browse files Browse the repository at this point in the history
It prevents write sizes >4k.

Signed-off-by: Joern Engel <joern@logfs.org>
  • Loading branch information
Joern Engel authored and Prasad Joshi committed Jan 28, 2012
1 parent 756ccb3 commit 6c69494
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/logfs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,6 @@ 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) {
memcpy(data, buf, len);
Expand Down

0 comments on commit 6c69494

Please sign in to comment.