From patchwork Wed Jan 26 22:48:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 215889 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6DCD92C0091 for ; Sat, 26 Jan 2013 17:45:50 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751194Ab3AZGpt (ORCPT ); Sat, 26 Jan 2013 01:45:49 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:content-type:content-transfer-encoding; bh=3m15naLvveyWJmA56cJJZjyPUZp+fC618rugYm0pK3s=; b=tsogQ5U6ORrZJVslIqci+hy80FNCXMCcNz5Cmzr22oLnaEtuHBEHiJlPXEZ7Qus2nP 3WsmBNn+ysuB/Rc72hALpxKqjxKNuRVd3LV2If0Uuv+v0tN8NVJoxnAqHmkyI4Tsx0dX Zpt0TSEykjrPH3g/dnbq1OmKFNVR2uSlNUzxO/Itmwg3aJe1VGOI8ZJS4++H3fzsme26 sbRADX+rEoQWJfWJ1zVe8xRF/yY4afoq1G/lsm2p7c4ToEocJAw670we2WRi9sdT2zHh 5+HBKq/7WbGzGPbqtZHCYVtC7gvT4Cj11Gqd4WPzVm0IF8SkV3NEF01RWsdyCBON/X9B XkOQ== X-Received: by 10.66.9.2 with SMTP id v2mr19332172paa.18.1359182749075; Fri, 25 Jan 2013 22:45:49 -0800 (PST) Received: from [192.168.94.131] ([117.88.78.152]) by mx.google.com with ESMTPS id o5sm2330876paz.32.2013.01.25.22.45.45 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jan 2013 22:45:47 -0800 (PST) Message-ID: <4D40A4B7.6050501@gmail.com> Date: Wed, 26 Jan 2011 14:48:23 -0800 From: Wang Shilong User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: jack@suse.cz CC: linux-ext4@vger.kernel.org Subject: [PATCH 2/2] Ext3: remove a useless check for the function ext3_free_blocks_sb Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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(-) -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 - "