add patch delete-useless-comments-about-ext4_move_extents
[ext4-patch-queue.git] / get-rid-of-code-duplication
blobeb1ac420ad2a835aae765766af6df46087a86fe1
1 ext4: get rid of code duplication
3 From: Dmitry Monakhov <dmonakhov@openvz.org>
5 Reviewed-by: Jan Kara <jack@suse.cz>
6 Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
7 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 ---
9  fs/ext4/mballoc.c |    3 +--
10  1 files changed, 1 insertions(+), 2 deletions(-)
12 diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
13 index 65cca28..eab825f 100644
14 --- a/fs/ext4/mballoc.c
15 +++ b/fs/ext4/mballoc.c
16 @@ -3155,9 +3155,8 @@ ext4_mb_normalize_request(struct ext4_allocation_context *ac,
17                          "start %lu, size %lu, fe_logical %lu",
18                          (unsigned long) start, (unsigned long) size,
19                          (unsigned long) ac->ac_o_ex.fe_logical);
20 +               BUG();
21         }
22 -       BUG_ON(start + size <= ac->ac_o_ex.fe_logical &&
23 -                       start > ac->ac_o_ex.fe_logical);
24         BUG_ON(size <= 0 || size > EXT4_BLOCKS_PER_GROUP(ac->ac_sb));
26         /* now prepare goal request */
27 -- 
28 1.7.1
31 To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
32 the body of a message to majordomo@vger.kernel.org
33 More majordomo info at  http://vger.kernel.org/majordomo-info.html