From patchwork Tue Aug 30 09:53:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Haifeng X-Patchwork-Id: 112234 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 DB86DB6F99 for ; Tue, 30 Aug 2011 19:54:03 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751074Ab1H3Jx7 (ORCPT ); Tue, 30 Aug 2011 05:53:59 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:35534 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922Ab1H3Jx7 (ORCPT ); Tue, 30 Aug 2011 05:53:59 -0400 Received: by gya6 with SMTP id 6so5476551gya.19 for ; Tue, 30 Aug 2011 02:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=WyBAWdAX8qVE2wz/Ncrz8vhBjCKQ00Ecu7OaXy/c7yQ=; b=toKecpZGKQAkFEbhBtv8QzMx+mTnVYbtERJ40gBF8F2iLfTCYrI/vXDKhkcUWYrRQT dUyMb1hP+hYiei6oIqolGlRgXTgCSsYWoKTKEF3uqmNB2YUkna927xOUAkUZ33RW11h/ VZg+YNzkpoco5DKnoRwVtOve3R+4h2RFm+Sok= MIME-Version: 1.0 Received: by 10.236.181.135 with SMTP id l7mr33206543yhm.85.1314698038625; Tue, 30 Aug 2011 02:53:58 -0700 (PDT) Received: by 10.236.41.69 with HTTP; Tue, 30 Aug 2011 02:53:58 -0700 (PDT) Date: Tue, 30 Aug 2011 17:53:58 +0800 Message-ID: Subject: [PATCH] fix the outdated comment in ext2_nfs_get_inode() From: Li Haifeng To: jack@suse.cz Cc: linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The function iget referred by the comment is replaced by ext2_iget . And the ext2_read_inode() is not exist, the ext2_iget is "neater". So the comment is fixed here. Signed-off-by: Li Haifeng --- fs/ext2/super.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) if (IS_ERR(inode)) diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 1dd62ed..994ced3 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -327,10 +327,8 @@ static struct inode *ext2_nfs_get_inode(struct super_block *sb, if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) return ERR_PTR(-ESTALE); - /* iget isn't really right if the inode is currently unallocated!! - * ext2_read_inode currently does appropriate checks, but - * it might be "neater" to call ext2_get_inode first and check - * if the inode is valid..... + /* + * ext2_iget isn't really right if the inode is currently unallocated!! */ inode = ext2_iget(sb, ino);