Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Howells and committed by
Linus Torvalds
69840b0d aa7fa240

+1 -1
+1 -1
fs/gfs2/inode.c
··· 240 240 ip->i_gl->gl_object = NULL; 241 241 gfs2_glock_put(ip->i_gl); 242 242 fail: 243 - iput(inode); 243 + iget_failed(inode); 244 244 return ERR_PTR(error); 245 245 } 246 246