Unionfs: set lower mnt after mkdir which resulted in copyup
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 23:32:12 +0000 (18:32 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 23:32:12 +0000 (18:32 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index 6ec5f5298e3e1ab57ee55748c928057bab3fb7bb..a8f3590b60324c02fa329e527b90e6cca22a710b 100644 (file)
@@ -665,8 +665,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);