projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.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
|
blame
|
history
diff --git
a/fs/afs/inode.c
b/fs/afs/inode.c
index 84750c8e9f95be1b07ba30ed7ab4778cf1ae9599..08db82e1343a1555fcc911fb4d42954db3fad1a0 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);
}