Li Dongyang
2010-Apr-22 08:11 UTC
[Ocfs2-devel] [PATCH 2/3] ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path
mark the inode with flag OCFS2_INODE_SKIP_ORPHAN_DIR when we meet an error after allocating one, so that we can kill the inode. Signed-off-by: Li Dongyang <lidongyang at novell.com> --- fs/ocfs2/namei.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index b2a8ed5..4ce4416 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c @@ -1809,6 +1809,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); } -- 1.6.4.2
Mark Fasheh
2010-Apr-23 19:45 UTC
[Ocfs2-devel] [PATCH 2/3] ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path
On Thu, Apr 22, 2010 at 04:11:25PM +0800, Li Dongyang wrote:> mark the inode with flag OCFS2_INODE_SKIP_ORPHAN_DIR when we meet > an error after allocating one, so that we can kill the inode. > > Signed-off-by: Li Dongyang <lidongyang at novell.com>Acked-by: Mark Fasheh <mfasheh at suse.com> -- Mark Fasheh