|
@@ -516,6 +516,7 @@ static int __ocfs2_mknod_locked(struct inode *dir,
|
|
|
struct ocfs2_extent_list *fel;
|
|
|
u16 feat;
|
|
|
struct ocfs2_inode_info *oi = OCFS2_I(inode);
|
|
|
+ struct timespec64 ts;
|
|
|
|
|
|
*new_fe_bh = NULL;
|
|
|
|
|
@@ -564,10 +565,11 @@ static int __ocfs2_mknod_locked(struct inode *dir,
|
|
|
fe->i_last_eb_blk = 0;
|
|
|
strcpy(fe->i_signature, OCFS2_INODE_SIGNATURE);
|
|
|
fe->i_flags |= cpu_to_le32(OCFS2_VALID_FL);
|
|
|
+ ktime_get_real_ts64(&ts);
|
|
|
fe->i_atime = fe->i_ctime = fe->i_mtime =
|
|
|
- cpu_to_le64(CURRENT_TIME.tv_sec);
|
|
|
+ cpu_to_le64(ts.tv_sec);
|
|
|
fe->i_mtime_nsec = fe->i_ctime_nsec = fe->i_atime_nsec =
|
|
|
- cpu_to_le32(CURRENT_TIME.tv_nsec);
|
|
|
+ cpu_to_le32(ts.tv_nsec);
|
|
|
fe->i_dtime = 0;
|
|
|
|
|
|
/*
|