lkml.org 
[lkml]   [2007]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 24/30] Unionfs: update inode times after a successful open
Date
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
---
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


\
 
 \ /
  Last update: 2007-12-28 21:51    [W:0.098 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site