Skip to content

Commit

Permalink
iget: use iget_failed() in GFS2
Browse files Browse the repository at this point in the history
Use iget_failed() in GFS2 to kill a failed inode.

Signed-off-by: David Howells <[email protected]>
Cc: Steven Whitehouse <[email protected]>
Acked-by: Christoph Hellwig <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and Linus Torvalds committed Feb 7, 2008
1 parent aa7fa24 commit 69840b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 69840b0

Please sign in to comment.