VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2011-03-04 01:14:55 -0500 committer: Bob Copeland <me@bobcopeland.com> 2011-03-05 16:20:30 -0500 commit: 013e4f4a285d8c7d952d8d7be9f10783a85b5d3c parent: 85e2efbb1db9a18d218006706d6e4fbeb0216213
Commit Summary:
omfs: rename() needs to mark old_inode dirty after ctime update
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/omfs/dir.c b/fs/omfs/dir.c
index 393f3f659da7..9990fc856959 100644
--- a/fs/omfs/dir.c
+++ b/fs/omfs/dir.c
@@ -423,6 +423,7 @@ static int omfs_rename(struct inode *old_dir, struct dentry *old_dentry,
 		goto out;
 
 	old_inode->i_ctime = CURRENT_TIME_SEC;
+	mark_inode_dirty(old_inode);
 out:
 	return err;
 }