ocfs2: Let inode be really deleted when ocfs2_mknod_locked() fails
authorJan Kara <jack@suse.cz>
Mon, 20 Oct 2008 17:23:54 +0000 (19:23 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 10 Nov 2008 17:51:46 +0000 (09:51 -0800)
commitb99835c1684918b9975851d71455c5c007d1715b
tree953ab209fa9c15a465ecf174a9327fb5d35c271a
parent87cfa004321c62aec681713ea48e0b846336d9f4
ocfs2: Let inode be really deleted when ocfs2_mknod_locked() fails

We forgot to set i_nlink to 0 when returning due to error from ocfs2_mknod_locked()
and thus inode was not properly released via ocfs2_delete_inode() (e.g. claimed
space was not released). Fix it.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/namei.c