提交 69840b0d 编写于 作者: D David Howells 提交者: Linus Torvalds

iget: use iget_failed() in GFS2

Use iget_failed() in GFS2 to kill a failed inode.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 aa7fa240
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册