VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Deepa Dinamani <deepa.kernel@gmail.com> 2016-09-14 07:48:04 -0700 committer: Al Viro <viro@zeniv.linux.org.uk> 2016-09-27 21:06:21 -0400 commit: 078cd8279e659989b103359bb22373cc79445bde parent: 2554c72edb81c97ae5307613dd0aee1ef8dd13ca
Commit Summary:
fs: Replace CURRENT_TIME with current_time() for inode timestamps
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index 3d935c81789a..df7ea8543a2e 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -49,7 +49,7 @@ struct inode *omfs_new_inode(struct inode *dir, umode_t mode)
 	inode_init_owner(inode, NULL, mode);
 	inode->i_mapping->a_ops = &omfs_aops;
 
-	inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
+	inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode);
 	switch (mode & S_IFMT) {
 	case S_IFDIR:
 		inode->i_op = &omfs_dir_inops;