diff options
author | David Howells <dhowells@redhat.com> | 2008-02-07 09:15:28 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 17:42:26 +0100 |
commit | aa7fa240c7d4ed28ee2d1afacd97be2d76e3cb49 (patch) | |
tree | fa1430062401374a03fa50af81f30724d281c366 /fs/afs/inode.c | |
parent | iget: introduce a function to register iget failure (diff) | |
download | linux-aa7fa240c7d4ed28ee2d1afacd97be2d76e3cb49.tar.xz linux-aa7fa240c7d4ed28ee2d1afacd97be2d76e3cb49.zip |
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>
Diffstat (limited to 'fs/afs/inode.c')
-rw-r--r-- | fs/afs/inode.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); } |