lkml.org 
[lkml]   [2015]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] udf: update ctime and mtime of new_dir
Date
Upon successful rename(), update ctime and mtime of new_dir
as posix specifies.

Signed-off-by: Taesoo Kim <tsgatesv@gmail.com>
---
fs/udf/namei.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/fs/udf/namei.c b/fs/udf/namei.c
index 33b246b..eca1955 100644
--- a/fs/udf/namei.c
+++ b/fs/udf/namei.c
@@ -1144,6 +1144,8 @@ static int udf_rename(struct inode *old_dir, struct dentry *old_dentry,
inode_dec_link_count(new_inode);
else {
inc_nlink(new_dir);
+ new_dir->i_ctime = new_dir->i_mtime
+ = current_fs_time(new_dir->i_sb);
mark_inode_dirty(new_dir);
}
}
--
2.3.3


\
 
 \ /
  Last update: 2015-03-24 22:21    [W:0.059 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site