From patchwork Wed Jan 26 22:47:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Shilong X-Patchwork-Id: 215888 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 389432C0090 for ; Sat, 26 Jan 2013 17:44:39 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751194Ab3AZGoi (ORCPT ); Sat, 26 Jan 2013 01:44:38 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:45860 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066Ab3AZGoh (ORCPT ); Sat, 26 Jan 2013 01:44:37 -0500 Received: by mail-pb0-f46.google.com with SMTP id uo15so601374pbc.19 for ; Fri, 25 Jan 2013 22:44:37 -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=Yf0dypooUro/5tkAqIfq00ndr+/nFzRzSEgaVhhkXDGWINDpo4Q2KA9W4uJG0njDwU HvtSFvlW1LT/DVuk4e5c6cDTIEg6UdnvUz/pRcIm5dsyg7IX2A0rGAmNqsGLaO0l0mTP 2eelya53LhmVbkruLv38BU+sq/8IHZ2AyNgxM9RmsW/H00Ld6vq03F/HBIZWYktDzeIl jBIV6Xi6udQxDI2g6BIfXbP1mtCX7nAaqhtyxUk3vhDQIRXWaWoLpkE2irCp4jmoM399 ZNKgLeBBvp/a3a2+CPfsNnxjjId0bhsre54Q5FtquX3gfs58/8DCWPMCrTW5gjbglKQe gyEA== X-Received: by 10.68.189.66 with SMTP id gg2mr20146211pbc.111.1359182677466; Fri, 25 Jan 2013 22:44:37 -0800 (PST) Received: from [192.168.94.131] ([117.88.78.152]) by mx.google.com with ESMTPS id vk5sm2082461pbc.34.2013.01.25.22.44.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jan 2013 22:44:36 -0800 (PST) Message-ID: <4D40A470.7050601@gmail.com> Date: Wed, 26 Jan 2011 14:47:12 -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 - "