Unionfs: set lower mnt after mkdir which resulted in copyup
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 21 Nov 2007 03:23:08 +0000 (22:23 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:21 +0000 (19:03 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index 82c2398e3adafe9be4e0e59f6cdecc793bd6af55..c646c80f678b712b5ff77f0370e96da8b4cfff36 100644 (file)
@@ -533,8 +533,10 @@ out:
 
        kfree(name);
 
-       if (!err)
+       if (!err) {
                unionfs_copy_attr_times(dentry->d_inode);
+               unionfs_postcopyup_setmnt(dentry);
+       }
        unionfs_check_inode(parent);
        unionfs_check_dentry(dentry);
        unionfs_unlock_dentry(dentry);