From patchwork Thu Jan 26 22:55:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 215891 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 D32B72C0082 for ; Sat, 26 Jan 2013 17:53:01 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751293Ab3AZGxB (ORCPT ); Sat, 26 Jan 2013 01:53:01 -0500 Received: from mail-da0-f48.google.com ([209.85.210.48]:41240 "EHLO mail-da0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014Ab3AZGxA (ORCPT ); Sat, 26 Jan 2013 01:53:00 -0500 Received: by mail-da0-f48.google.com with SMTP id k18so496764dae.35 for ; Fri, 25 Jan 2013 22:53:00 -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=zykPxhhAAe7FjCSsg3UYqH233wOVZbq4YKSIACynb1w=; b=vM/yoKqLJD/JBpliSh3ktWUa1b072jV5acwjAcNy4r75jLD+NZLlysdCixsKsXYfBr TIoSf7tuAl5+2gd13NnvsLnGsJwdpdcw895GxNnfcydf9AbE2iP5TsiKrARiEzhI0LFb ecHtmN8bG93KB1wMwFz1TMFH9GFIy0kVn6lDCIKny1z/+fLsGw7Ezc7ijzE9VxKi/gTN eDItMFeEqwOIngUnjDkWugsocFjdWDLA/iYcBdHTAzgd0N3L2oqqC6ClAsLeDIA4TIhM gkAsPXBnZrcJWuP9ub3kYCPcmYpNqE8LN6whOkFKz/gXLiwh1CyAZRn/eQ+/noRl2VXZ kXRg== X-Received: by 10.68.241.103 with SMTP id wh7mr20301258pbc.153.1359183180140; Fri, 25 Jan 2013 22:53:00 -0800 (PST) Received: from [192.168.94.131] ([117.88.78.152]) by mx.google.com with ESMTPS id nf9sm2099641pbc.17.2013.01.25.22.52.57 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jan 2013 22:52:59 -0800 (PST) Message-ID: <4F21D9D5.8030401@gmail.com> Date: Thu, 26 Jan 2012 14:55:17 -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 1/2] Ext2: remove a useless check for the function ext2_free_blocks 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 useles to have this check,just remove it. Signed-off-by: Wang Shilong --- fs/ext2/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/ext2/balloc.c b/fs/ext2/balloc.c index 2616d0e..081929c 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c @@ -498,7 +498,6 @@ void ext2_free_blocks (struct inode * inode, unsigned long block, unsigned freed = 0, group_freed; if (block < le32_to_cpu(es->s_first_data_block) || - block + count < block || block + count > le32_to_cpu(es->s_blocks_count)) { ext2_error (sb, "ext2_free_blocks", "Freeing blocks not in datazone - "