[Ocfs2-devel] [PATCH 2/3] ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path
Li Dongyang
lidongyang at novell.com
Thu Apr 22 01:11:25 PDT 2010
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
More information about the Ocfs2-devel
mailing list