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)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 08:00:01 +0000 (03:00 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index 1708f40acc869706a4e8ff26a2cf1e1f1eeddb85..9c144beb73e0cf8bce59481edc3175862a14a5a9 100644 (file)
@@ -674,8 +674,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);