From patchwork Sat Jan 26 22:58:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 215895 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 731762C0090 for ; Sat, 26 Jan 2013 17:56:35 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751403Ab3AZG4f (ORCPT ); Sat, 26 Jan 2013 01:56:35 -0500 Received: from mail-pb0-f51.google.com ([209.85.160.51]:56189 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014Ab3AZG4e (ORCPT ); Sat, 26 Jan 2013 01:56:34 -0500 Received: by mail-pb0-f51.google.com with SMTP id ro12so610844pbb.10 for ; Fri, 25 Jan 2013 22:56:34 -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=Jrr4FbJVn8cxBHlJa9PhAuFk+8c38uvUKevFqGRxjp6oESV5hXnQw40Phj9PyoxhBM 0j2MPMeKHSDtdNrrELPGXIx0+gzmHb/54HiMmiHultOzjv0JmoLHIkpfbGcomw2hJqhW iwsXcEdqkjSc5+dd301v1ZnveLdwh5ynZcoDer3yqAhIiY6Ig5kWWX+wY/kKIn2Mbd5X gRUOXzaOAKbNijDVOfYsxaKfnnvBrs5j7zGsF+leoAzhyZufrMpBPlPa8bET3SseOvXi vdqBSowmIZJ7IcyBMn8qebvAEFZYFuLUY3WtLE7XNujihDe12s5Bcki3wMkJt78Ni3S7 dLRg== X-Received: by 10.66.82.35 with SMTP id f3mr19261696pay.49.1359183394415; Fri, 25 Jan 2013 22:56:34 -0800 (PST) Received: from [192.168.94.131] ([117.88.78.152]) by mx.google.com with ESMTPS id pu5sm2087999pbb.73.2013.01.25.22.56.31 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jan 2013 22:56:33 -0800 (PST) Message-ID: <51045F97.9070602@gmail.com> Date: Sat, 26 Jan 2013 14:58:31 -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 - "