Browse Source

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>
master
David Howells 14 years ago
committed by Linus Torvalds
parent
commit
69840b0d06
  1. 2
      fs/gfs2/inode.c

2
fs/gfs2/inode.c

@ -240,7 +240,7 @@ fail_put:
ip->i_gl->gl_object = NULL;
gfs2_glock_put(ip->i_gl);
fail:
iput(inode);
iget_failed(inode);
return ERR_PTR(error);
}

Loading…
Cancel
Save