From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161544AbXDLC5C (ORCPT ); Wed, 11 Apr 2007 22:57:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161521AbXDLCwQ (ORCPT ); Wed, 11 Apr 2007 22:52:16 -0400 Received: from qb-out-0506.google.com ([72.14.204.239]:54681 "EHLO qb-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161518AbXDLCwI (ORCPT ); Wed, 11 Apr 2007 22:52:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:date:message-id:in-reply-to:subject; b=jLoW9oPme4qBIbItTLQH8MW0feMHZEVTE0a6jSV6WJYVzCLRsxaTSXg1Isq53uBgQNj8Wuf4gOnPbHuzjOcMe/egwCx4FEAWy6QaU5ILvBCT4XudpEdG5coREVzZ/iurOQvQpJiHHTBujRDYdY8jqLeGoj9XCig5a1mfm2swwpE= From: Nate Diller To: Andrew Morton , Alexander Viro , Christoph Hellwig , Roman Zippel , Mikulas Patocka , David Woodhouse , Dave Kleikamp , Anton Altaparmakov , Evgeniy Dushistov Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, reiserfs-dev@namesys.com Date: Wed, 11 Apr 2007 19:49:38 -0700 Message-Id: <20070412024938.27380.72253.patchbomb.py@localhost> In-Reply-To: <20070412024938.27380.54538.patchbomb.py@localhost> Subject: [PATCH 6/17] hfs: remove redundant read_mapping_page error check Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Now that read_mapping_page() does error checking internally, there is no need to check PageError here. Signed-off-by: Nate Diller --- diff -urpN -X dontdiff linux-2.6.21-rc6-mm1/fs/hfs/bnode.c linux-2.6.21-rc6-mm1-test/fs/hfs/bnode.c --- linux-2.6.21-rc6-mm1/fs/hfs/bnode.c 2007-04-09 17:20:13.000000000 -0700 +++ linux-2.6.21-rc6-mm1-test/fs/hfs/bnode.c 2007-04-10 21:28:03.000000000 -0700 @@ -282,10 +282,6 @@ static struct hfs_bnode *__hfs_bnode_cre page = read_mapping_page(mapping, block++, NULL); if (IS_ERR(page)) goto fail; - if (PageError(page)) { - page_cache_release(page); - goto fail; - } page_cache_release(page); node->page[i] = page; }