commit af4b3722061862b75f3f8ed1109f76795592734c
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Tue Dec 25 17:31:14 2007 -0500

    Unionfs: update inode times after a successful open
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index b582dae..7ae1c5b 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -583,10 +583,13 @@ out:
                kfree(UNIONFS_F(file));
        }
 out_nofree:
-       unionfs_check_inode(inode);
        if (!err) {
+               dentry = file->f_dentry;
+               unionfs_copy_attr_times(dentry->d_parent->d_inode);
+               unionfs_copy_attr_times(inode);
                unionfs_check_file(file);
-               unionfs_check_dentry(file->f_dentry->d_parent);
+               unionfs_check_dentry(dentry->d_parent);
+               unionfs_check_inode(inode);
        }
        unionfs_read_unlock(inode->i_sb);
        return err;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to