iget: use iget_failed() in GFS2
Use iget_failed() in GFS2 to kill a failed inode. Signed-off-by: David Howells <dhowells@redhat.com> Cc: Steven Whitehouse <swhiteho@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
aa7fa240c7
commit
69840b0d06
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ struct inode *gfs2_inode_lookup(struct super_block *sb,
|
|||
ip->i_gl->gl_object = NULL;
|
||||
gfs2_glock_put(ip->i_gl);
|
||||
fail:
|
||||
iput(inode);
|
||||
iget_failed(inode);
|
||||
return ERR_PTR(error);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue