mirror of https://gitee.com/openkylin/linux.git
iget: use iget_failed() in AFS
Use iget_failed() in AFS to kill a failed inode. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b46980feed
commit
aa7fa240c7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue