summaryrefslogtreecommitdiffstats
path: root/fs/logfs
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2011-09-12 21:09:16 +0530
committerPrasad Joshi <prasadjoshi.linux@gmail.com>2012-01-28 11:41:56 +0530
commit6c69494f6b442834f26377e02d43fc8e1272221d (patch)
tree0f1f9973363d19fb5015ca25eb1c06a62fee22d6 /fs/logfs
parent756ccb3c351e425ad5544ff1a92cfe6bec83b904 (diff)
downloadlinux-6c69494f6b442834f26377e02d43fc8e1272221d.tar.gz
linux-6c69494f6b442834f26377e02d43fc8e1272221d.tar.bz2
linux-6c69494f6b442834f26377e02d43fc8e1272221d.zip
logfs: remove useless BUG_ON
It prevents write sizes >4k. Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs/logfs')
-rw-r--r--fs/logfs/journal.c1
1 files changed, 0 insertions, 1 deletions
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);