projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b46980f
)
iget: use iget_failed() in AFS
author
David Howells
<dhowells@redhat.com>
Thu, 7 Feb 2008 08:15:28 +0000
(
00:15
-0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:26 +0000
(08:42 -0800)
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>
fs/afs/inode.c
patch
|
blob
|
history
diff --git
a/fs/afs/inode.c
b/fs/afs/inode.c
index
84750c8
..
08db82e
100644
(file)
--- 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);
}