From: Joern Engel Date: Mon, 12 Sep 2011 15:39:16 +0000 (+0530) Subject: logfs: remove useless BUG_ON X-Git-Tag: next-20111025~83^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3138957a772c17ce13f94373d49433b441319254;p=karo-tx-linux.git logfs: remove useless BUG_ON It prevents write sizes >4k. Signed-off-by: Joern Engel --- diff --git a/fs/logfs/journal.c b/fs/logfs/journal.c index 9da29706f91c..1e1c369df22b 100644 --- a/fs/logfs/journal.c +++ b/fs/logfs/journal.c @@ -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);