projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4cd187
)
ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path
author
Li Dongyang
<lidongyang@novell.com>
Thu, 22 Apr 2010 08:11:25 +0000
(16:11 +0800)
committer
Mark Fasheh
<mfasheh@suse.com>
Fri, 23 Apr 2010 18:05:00 +0000
(11:05 -0700)
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>
fs/ocfs2/namei.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/namei.c
b/fs/ocfs2/namei.c
index ae315c9c768fc394b452f722aab44696b8b74c3b..b66e488558253e994ad21ec7bd747b134e97a29a 100644
(file)
--- 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);
}