Skip to content

Commit 69840b0

Browse files
dhowellsLinus Torvalds
authored andcommitted
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>
1 parent aa7fa24 commit 69840b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/gfs2/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ struct inode *gfs2_inode_lookup(struct super_block *sb,
240240
ip->i_gl->gl_object = NULL;
241241
gfs2_glock_put(ip->i_gl);
242242
fail:
243-
iput(inode);
243+
iget_failed(inode);
244244
return ERR_PTR(error);
245245
}
246246

0 commit comments

Comments
 (0)