From: Erez Zadok Subject: [PATCH 24/30] Unionfs: update inode times after a successful open Date: Fri, 28 Dec 2007 15:42:58 -0500 Message-ID: <11988745963906-git-send-email-ezk@cs.sunysb.edu> References: <11988745841003-git-send-email-ezk@cs.sunysb.edu> Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@ftp.linux.org.uk, hch@infradead.org, Erez Zadok To: akpm@linux-foundation.org Return-path: Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:37138 "EHLO filer.fsl.cs.sunysb.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753294AbXL1Unr (ORCPT ); Fri, 28 Dec 2007 15:43:47 -0500 In-Reply-To: <11988745841003-git-send-email-ezk@cs.sunysb.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Erez Zadok --- fs/unionfs/commonfops.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 4077907..b8357a7 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; -- 1.5.2.2