mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] udf: update ctime and mtime of new_dir
@ 2015-03-24 20:47 Taesoo Kim
  2015-04-01 12:29 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Taesoo Kim @ 2015-03-24 20:47 UTC (permalink / raw)
  To: jack, linux-kernel; +Cc: taesoo, changwoo, sanidhya, blee, csong84, Taesoo Kim

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-01 12:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 20:47 [PATCH 1/1] udf: update ctime and mtime of new_dir Taesoo Kim
2015-04-01 12:29 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®