From 985bef358124cbc17ad7a5d386cf6301ea10d797 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Mon, 20 Oct 2008 19:23:54 +0200 Subject: [PATCH] --- yaml --- r: 118744 b: refs/heads/master c: b99835c1684918b9975851d71455c5c007d1715b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/namei.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6af1cf3c840b..76b296d8357b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 87cfa004321c62aec681713ea48e0b846336d9f4 +refs/heads/master: b99835c1684918b9975851d71455c5c007d1715b diff --git a/trunk/fs/ocfs2/namei.c b/trunk/fs/ocfs2/namei.c index f594f300d4cd..f4967e634ffd 100644 --- a/trunk/fs/ocfs2/namei.c +++ b/trunk/fs/ocfs2/namei.c @@ -491,8 +491,10 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb, brelse(*new_fe_bh); *new_fe_bh = NULL; } - if (inode) + if (inode) { + clear_nlink(inode); iput(inode); + } } mlog_exit(status);