Merge branch 'vfs_timespec64' of https://github.com/deepa-hub/vfs into vfs-timespec64
[muen/linux.git] / fs / f2fs / namei.c
index 75e37fd720b2ba999c05dbb0219f7f4850d6f25e..4455d6c82808530977837303c16df3e05f4ee0d3 100644 (file)
@@ -50,8 +50,8 @@ static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode)
 
        inode->i_ino = ino;
        inode->i_blocks = 0;
-       inode->i_mtime = inode->i_atime = inode->i_ctime =
-                       F2FS_I(inode)->i_crtime = current_time(inode);
+       inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode);
+       F2FS_I(inode)->i_crtime = timespec64_to_timespec(inode->i_mtime);
        inode->i_generation = sbi->s_next_generation++;
 
        err = insert_inode_locked(inode);