Set the hardlink'ed inode to the same one as the linked one, instead of
instantiating a new inode.
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
/* Its a hard link, so use the same inode */
new_dentry->d_inode = igrab(old_dentry->d_inode);
- d_instantiate(new_dentry, new_dentry->d_inode);
+ d_add(new_dentry, new_dentry->d_inode);
unionfs_copy_attr_all(dir, lower_new_dentry->d_parent->d_inode);
fsstack_copy_inode_size(dir, lower_new_dentry->d_parent->d_inode);