From 2eb37d74cdb5554d75ee790b0b7ae2f1a2aa7e8f Mon Sep 17 00:00:00 2001 From: Joern Engel Date: Tue, 13 Apr 2010 17:57:21 +0200 Subject: [PATCH] --- yaml --- r: 190088 b: refs/heads/master c: ead88af5f577fd2b399a0fcdfe52605116fac489 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/logfs/journal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4432101ae0c1..176388414b23 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d3a03f8031000f8297823b80e36db536fd020884 +refs/heads/master: ead88af5f577fd2b399a0fcdfe52605116fac489 diff --git a/trunk/fs/logfs/journal.c b/trunk/fs/logfs/journal.c index 2957bfc21927..fd44eeea5135 100644 --- a/trunk/fs/logfs/journal.c +++ b/trunk/fs/logfs/journal.c @@ -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;