* [Ocfs2-devel] [PATCH 2/3] ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path
@ 2010-04-22 8:11 Li Dongyang
2010-04-23 19:45 ` Mark Fasheh
0 siblings, 1 reply; 2+ messages in thread
From: Li Dongyang @ 2010-04-22 8:11 UTC (permalink / raw)
To: ocfs2-devel
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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Ocfs2-devel] [PATCH 2/3] ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path
2010-04-22 8:11 [Ocfs2-devel] [PATCH 2/3] ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path Li Dongyang
@ 2010-04-23 19:45 ` Mark Fasheh
0 siblings, 0 replies; 2+ messages in thread
From: Mark Fasheh @ 2010-04-23 19:45 UTC (permalink / raw)
To: ocfs2-devel
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@novell.com>
Acked-by: Mark Fasheh <mfasheh@suse.com>
--
Mark Fasheh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-23 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22 8:11 [Ocfs2-devel] [PATCH 2/3] ocfs2: use OCFS2_INODE_SKIP_ORPHAN_DIR in ocfs2_symlink error path Li Dongyang
2010-04-23 19:45 ` Mark Fasheh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.