From: David Howells Date: Thu, 7 Feb 2008 08:15:28 +0000 (-0800) Subject: iget: use iget_failed() in AFS X-Git-Tag: v2.6.25-rc1~385 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aa7fa240c7d4ed28ee2d1afacd97be2d76e3cb49;p=linux-2.6-omap-h63xx.git iget: use iget_failed() in AFS Use iget_failed() in AFS to kill a failed inode. Signed-off-by: David Howells Acked-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 84750c8e9f9..08db82e1343 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -196,10 +196,7 @@ struct inode *afs_iget(struct super_block *sb, struct key *key, /* failure */ bad_inode: - make_bad_inode(inode); - unlock_new_inode(inode); - iput(inode); - + iget_failed(inode); _leave(" = %d [bad]", ret); return ERR_PTR(ret); }