Commit 69840b0d authored by David Howells's avatar David Howells Committed by Linus Torvalds

iget: use iget_failed() in GFS2

Use iget_failed() in GFS2 to kill a failed inode.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent aa7fa240
...@@ -240,7 +240,7 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, ...@@ -240,7 +240,7 @@ struct inode *gfs2_inode_lookup(struct super_block *sb,
ip->i_gl->gl_object = NULL; ip->i_gl->gl_object = NULL;
gfs2_glock_put(ip->i_gl); gfs2_glock_put(ip->i_gl);
fail: fail:
iput(inode); iget_failed(inode);
return ERR_PTR(error); return ERR_PTR(error);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment