Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
unionfs_unlock_dentry(dentry);
out:
+ if (!IS_ERR(ret) && d_unhashed(dentry)) /* needed in 2.6.9 */
+ d_rehash(dentry);
if (dentry != dentry->d_parent) {
unionfs_check_dentry(dentry->d_parent);
unionfs_unlock_dentry(dentry->d_parent);
/* only (our) lookup wants to do a d_add */
switch (flag) {
case INTERPOSE_DEFAULT:
+#ifdef OFF_BROKEN_ON_2_6_9
+ /* causes EBUSY on 2.6.9 */
/* for operations which create new inodes */
d_add(dentry, inode);
break;
+#endif
case INTERPOSE_REVAL_NEG:
d_instantiate(dentry, inode);
break;