summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2014-10-02 04:26:17 +0200
committerTheodore Ts'o <tytso@mit.edu>2014-10-02 04:26:17 +0200
commitdfe076c106f63cf6bcd375c56db9c8c89a088dab (patch)
treeca7d3cc48e7b54e8b6fe64dad6c0326df5ad5fca /fs/ext4
parentext4: fix over-defensive complaint after journal abort (diff)
downloadlinux-dfe076c106f63cf6bcd375c56db9c8c89a088dab.tar.xz
linux-dfe076c106f63cf6bcd375c56db9c8c89a088dab.zip
ext4: get rid of code duplication
Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 65cca2881d71..eab825f61bf9 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -3155,9 +3155,8 @@ ext4_mb_normalize_request(struct ext4_allocation_context *ac,
"start %lu, size %lu, fe_logical %lu",
(unsigned long) start, (unsigned long) size,
(unsigned long) ac->ac_o_ex.fe_logical);
+ BUG();
}
- BUG_ON(start + size <= ac->ac_o_ex.fe_logical &&
- start > ac->ac_o_ex.fe_logical);
BUG_ON(size <= 0 || size > EXT4_BLOCKS_PER_GROUP(ac->ac_sb));
/* now prepare goal request */