Unionfs: cache-coherency: update times of root inode after branch management
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 17 Jul 2007 03:42:55 +0000 (23:42 -0400)
committerErez_Zadok <ezk@cs.sunysb.edu>
Mon, 23 Jul 2007 00:50:55 +0000 (20:50 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/super.c

index 9b6f5016614e39fae8dfc31ff0a58d454aaa6e9b..c168b2383c371241871ffe9120ed01049cb6f667 100644 (file)
@@ -764,6 +764,8 @@ out_no_change:
        atomic_set(&UNIONFS_I(sb->s_root->d_inode)->generation, i);
        if (!(*flags & MS_SILENT))
                printk("unionfs: new generation number %d\n", i);
+       /* finally, update the root dentry's times */
+       unionfs_copy_attr_times(sb->s_root->d_inode);
        err = 0;                /* reset to success */
 
        /*