From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang Shilong Subject: [PATCH 2/2] Ext3: remove a useless check for the function ext3_free_blocks_sb Date: Wed, 26 Jan 2011 14:48:23 -0800 Message-ID: <4D40A4B7.6050501@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: linux-ext4@vger.kernel.org To: jack@suse.cz Return-path: Received: from mail-pb0-f51.google.com ([209.85.160.51]:58844 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014Ab3AZGpt (ORCPT ); Sat, 26 Jan 2013 01:45:49 -0500 Received: by mail-pb0-f51.google.com with SMTP id ro12so601938pbb.38 for ; Fri, 25 Jan 2013 22:45:49 -0800 (PST) Sender: linux-ext4-owner@vger.kernel.org List-ID: From: Wang Shilong Because 'block + count < block' always comes to false, it is useless to have this check, just remove it. Signed-off-by: Wang Shilong --- fs/ext3/balloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c index 22548f5..c557f22 100644 --- a/fs/ext3/balloc.c +++ b/fs/ext3/balloc.c @@ -507,7 +507,6 @@ void ext3_free_blocks_sb(handle_t *handle, struct super_block *sb, sbi = EXT3_SB(sb); es = sbi->s_es; if (block < le32_to_cpu(es->s_first_data_block) || - block + count < block || block + count > le32_to_cpu(es->s_blocks_count)) { ext3_error (sb, "ext3_free_blocks", "Freeing blocks not in datazone - " -- 1.7.11.7