forked from Minki/linux
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 */
|
/* failure */
|
||||||
bad_inode:
|
bad_inode:
|
||||||
make_bad_inode(inode);
|
iget_failed(inode);
|
||||||
unlock_new_inode(inode);
|
|
||||||
iput(inode);
|
|
||||||
|
|
||||||
_leave(" = %d [bad]", ret);
|
_leave(" = %d [bad]", ret);
|
||||||
return ERR_PTR(ret);
|
return ERR_PTR(ret);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user