From: Erez Zadok Date: Thu, 10 Jan 2008 12:04:18 +0000 (-0500) Subject: Unionfs: update inode times after a successful open X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=b9f1ba5d6b79e1212460900e016d4d0b5ec915bd;p=unionfs-odf.git Unionfs: update inode times after a successful open Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 516ea5256c..26573f3006 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -675,10 +675,13 @@ out: kfree(UNIONFS_F(file)); } out_nofree: - unionfs_check_inode(inode); if (!err) { + dentry = file->f_path.dentry; + unionfs_copy_attr_times(dentry->d_parent->d_inode); + unionfs_copy_attr_times(inode); unionfs_check_file(file); - unionfs_check_dentry(file->f_path.dentry->d_parent); + unionfs_check_dentry(dentry->d_parent); + unionfs_check_inode(inode); } unionfs_read_unlock(inode->i_sb); return err;