From d951e65c92aaa0c450d0e0de926d77e774f96abd Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Sat, 22 Dec 2007 20:45:47 -0500 Subject: [PATCH] Unionfs: update inode times after a successful open Signed-off-by: Erez Zadok --- fs/unionfs/commonfops.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 4077907ef90..b8357a726ec 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_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; -- 2.34.1