From: David Howells Date: Thu, 7 Feb 2008 08:15:28 +0000 (-0800) Subject: iget: use iget_failed() in AFS X-Git-Tag: firefly_0821_release~22878 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa7fa240c7d4ed28ee2d1afacd97be2d76e3cb49;p=firefly-linux-kernel-4.4.55.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 84750c8e9f95..08db82e1343a 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); }