GIT: unionfs2-2.6.27.y: d_splice bugfix: update dentry in our lookup if needed.

Erez Zadok ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:23 EDT 2010


commit 21d75131bd7792944cd71c7060e3799d30126943
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date:   Sat May 19 20:44:25 2007 -0400

    d_splice bugfix: update dentry in our lookup if needed.

diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
index d3e0a4f..fcdd739 100644
--- a/fs/unionfs/inode.c
+++ b/fs/unionfs/inode.c
@@ -266,8 +266,11 @@ static struct dentry *unionfs_lookup(struct inode *parent,
 		nd->dentry = path_save.dentry;
 		nd->mnt = path_save.mnt;
 	}
-	if (!IS_ERR(ret))
+	if (!IS_ERR(ret)) {
+		if (ret)
+			dentry = ret;
 		unionfs_inherit_mnt(dentry);
+	}
 
 	unionfs_check_inode(parent);
 	unionfs_check_dentry(dentry);


More information about the unionfs-cvs mailing list