Subject: + ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2.patch added to -mm tree To: xuejiufei@xxxxxxxxxx,jlbec@xxxxxxxxxxxx,mfasheh@xxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 10 Feb 2014 13:54:29 -0800 The patch titled Subject: ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2 has been added to the -mm tree. Its filename is ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Xue jiufei <xuejiufei@xxxxxxxxxx> Subject: ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2 Signed-off-by: joyce <xuejiufei@xxxxxxxxxx> Cc: Joel Becker <jlbec@xxxxxxxxxxxx> Cc: Mark Fasheh <mfasheh@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ocfs2/namei.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN fs/ocfs2/namei.c~ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2 fs/ocfs2/namei.c --- a/fs/ocfs2/namei.c~ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2 +++ a/fs/ocfs2/namei.c @@ -694,6 +694,10 @@ static int ocfs2_link(struct dentry *old goto out; } + /* + * Check whether another node removed the source inode while we + * were in the vfs. + */ if (old_de_ino != OCFS2_I(inode)->ip_blkno) { err = -ENOENT; goto out; _ Patches currently in -mm which might be from xuejiufei@xxxxxxxxxx are ocfs2-check-existence-of-old-dentry-in-ocfs2_link.patch ocfs2-check-existence-of-old-dentry-in-ocfs2_link-v2.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html