Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab41fdc8 authored by Li Dongyang's avatar Li Dongyang Committed by Mark Fasheh
Browse files

ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path



Mark the inode with flag OCFS2_INODE_SKIP_ORPHAN_DIR when we get an error
after allocating one, so that we can kill the inode.

Signed-off-by: default avatarLi Dongyang <lidongyang@novell.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent d4cd1871
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1811,6 +1811,7 @@ bail:
	if (xattr_ac)
		ocfs2_free_alloc_context(xattr_ac);
	if ((status < 0) && inode) {
		OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SKIP_ORPHAN_DIR;
		clear_nlink(inode);
		iput(inode);
	}