Skip to content

Commit

Permalink
iget: use iget_failed() in AFS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and Linus Torvalds committed Feb 7, 2008
1 parent b46980f commit aa7fa24
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/afs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit aa7fa24

Please sign in to comment.