diff options
author | Joern Engel <joern@logfs.org> | 2010-04-13 11:57:21 -0400 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-04-13 11:57:21 -0400 |
commit | ead88af5f577fd2b399a0fcdfe52605116fac489 (patch) | |
tree | 498379d96c24f3180f99592700e9e017b962e688 /fs | |
parent | d3a03f8031000f8297823b80e36db536fd020884 (diff) |
[LogFS] Move assertion
The assertion is valid independently of the condition.
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/logfs/journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/journal.c b/fs/logfs/journal.c index 2957bfc21927..fd44eeea5135 100644 --- a/fs/logfs/journal.c +++ b/fs/logfs/journal.c | |||
@@ -612,9 +612,9 @@ static size_t __logfs_write_je(struct super_block *sb, void *buf, u16 type, | |||
612 | if (len == 0) | 612 | if (len == 0) |
613 | return logfs_write_header(super, header, 0, type); | 613 | return logfs_write_header(super, header, 0, type); |
614 | 614 | ||
615 | BUG_ON(len > sb->s_blocksize); | ||
615 | compr_len = logfs_compress(buf, data, len, sb->s_blocksize); | 616 | compr_len = logfs_compress(buf, data, len, sb->s_blocksize); |
616 | if (compr_len < 0 || type == JE_ANCHOR) { | 617 | if (compr_len < 0 || type == JE_ANCHOR) { |
617 | BUG_ON(len > sb->s_blocksize); | ||
618 | memcpy(data, buf, len); | 618 | memcpy(data, buf, len); |
619 | compr_len = len; | 619 | compr_len = len; |
620 | compr = COMPR_NONE; | 620 | compr = COMPR_NONE; |