Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);
}
}