diff options
author | Li Dongyang <lidongyang@novell.com> | 2010-04-22 16:11:25 +0800 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2010-04-23 11:05:00 -0700 |
commit | ab41fdc8fdd9f0942430941c1e2b516fd481371d (patch) | |
tree | b362d6295b6b69909eefef0a1b1483e59be1fcec /fs/ocfs2/namei.c | |
parent | d4cd1871cff68e188dadcf6d1280762522b643eb (diff) | |
download | op-kernel-dev-ab41fdc8fdd9f0942430941c1e2b516fd481371d.zip op-kernel-dev-ab41fdc8fdd9f0942430941c1e2b516fd481371d.tar.gz |
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: Li Dongyang <lidongyang@novell.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r-- | 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 ae315c9..b66e488 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c @@ -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); } |