/fs/ |
D | utimes.c | 35 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 36 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 61 if (times && times[0].tv_nsec == UTIME_NOW && in utimes_common() 62 times[1].tv_nsec == UTIME_NOW) in utimes_common() 67 if (times[0].tv_nsec == UTIME_OMIT) in utimes_common() 69 else if (times[0].tv_nsec != UTIME_NOW) { in utimes_common() 71 newattrs.ia_atime.tv_nsec = times[0].tv_nsec; in utimes_common() 75 if (times[1].tv_nsec == UTIME_OMIT) in utimes_common() 77 else if (times[1].tv_nsec != UTIME_NOW) { in utimes_common() 79 newattrs.ia_mtime.tv_nsec = times[1].tv_nsec; in utimes_common() [all …]
|
D | select.c | 62 slack = tv->tv_nsec / divfactor; in __estimate_accuracy() 274 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() 281 to->tv_sec = to->tv_nsec = 0; in poll_select_set_timeout() 302 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_copy_remaining() 308 rts.tv_sec = rts.tv_nsec = 0; in poll_select_copy_remaining() 314 rtv.tv_usec = rts.tv_nsec / NSEC_PER_USEC; in poll_select_copy_remaining() 416 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_select() 633 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect() 763 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_poll() 899 end_time.tv_nsec = restart_block->poll.tv_nsec; in do_restart_poll() [all …]
|
D | compat.c | 86 tv[0].tv_nsec = 0; in compat_sys_utime() 87 tv[1].tv_nsec = 0; in compat_sys_utime() 101 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in compat_sys_utimensat() 113 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in compat_sys_futimesat() 115 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in compat_sys_futimesat() 117 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in compat_sys_futimesat() 118 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in compat_sys_futimesat() 120 tv[0].tv_nsec *= 1000; in compat_sys_futimesat() 121 tv[1].tv_nsec *= 1000; in compat_sys_futimesat() 154 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_compat_stat() [all …]
|
D | stat.c | 234 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat() 235 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat() 236 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat() 356 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat64() 358 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64() 360 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat64()
|
/fs/proc/ |
D | uptime.c | 27 idle.tv_nsec = rem; in uptime_proc_show() 30 (uptime.tv_nsec / (NSEC_PER_SEC / 100)), in uptime_proc_show() 32 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_proc_show()
|
/fs/hostfs/ |
D | hostfs_user.c | 30 p->atime.tv_nsec = 0; in stat64_to_hostfs() 32 p->ctime.tv_nsec = 0; in stat64_to_hostfs() 34 p->mtime.tv_nsec = 0; in stat64_to_hostfs() 250 times[0].tv_usec = st.atime.tv_nsec / 1000; in set_attr() 252 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr() 256 times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000; in set_attr() 260 times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000; in set_attr()
|
/fs/hpfs/ |
D | namei.c | 50 result->i_ctime.tv_nsec = 0; in hpfs_mkdir() 51 result->i_mtime.tv_nsec = 0; in hpfs_mkdir() 52 result->i_atime.tv_nsec = 0; in hpfs_mkdir() 156 result->i_ctime.tv_nsec = 0; in hpfs_create() 157 result->i_mtime.tv_nsec = 0; in hpfs_create() 158 result->i_atime.tv_nsec = 0; in hpfs_create() 239 result->i_ctime.tv_nsec = 0; in hpfs_mknod() 240 result->i_mtime.tv_nsec = 0; in hpfs_mknod() 241 result->i_atime.tv_nsec = 0; in hpfs_mknod() 313 result->i_ctime.tv_nsec = 0; in hpfs_symlink() [all …]
|
D | dir.c | 270 result->i_ctime.tv_nsec = 0; in hpfs_lookup() 272 result->i_mtime.tv_nsec = 0; in hpfs_lookup() 274 result->i_atime.tv_nsec = 0; in hpfs_lookup()
|
/fs/udf/ |
D | udftime.c | 116 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time() 164 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp() 165 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp() 167 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
|
/fs/nfsd/ |
D | nfsxdr.c | 118 iap->ia_atime.tv_nsec = tmp1 * 1000; in decode_sattr() 124 iap->ia_mtime.tv_nsec = tmp1 * 1000; in decode_sattr() 186 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); in encode_fattr() 189 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); in encode_fattr() 191 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); in encode_fattr()
|
/fs/ntfs/ |
D | time.h | 54 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs() 95 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc()
|
/fs/coda/ |
D | coda_linux.c | 139 vattr->va_atime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr() 141 vattr->va_mtime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr() 143 vattr->va_ctime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr()
|
/fs/xfs/ |
D | xfs_dfrag.c | 292 (sbp->bs_ctime.tv_nsec != VFS_I(ip)->i_ctime.tv_nsec) || in xfs_swap_extents() 294 (sbp->bs_mtime.tv_nsec != VFS_I(ip)->i_mtime.tv_nsec)) { in xfs_swap_extents()
|
D | xfs_trans_inode.c | 99 ip->i_d.di_mtime.t_nsec = tv.tv_nsec; in xfs_trans_ichgtime() 105 ip->i_d.di_ctime.t_nsec = tv.tv_nsec; in xfs_trans_ichgtime()
|
D | xfs_iops.c | 642 ip->i_d.di_atime.t_nsec = iattr->ia_atime.tv_nsec; in xfs_setattr_nonsize() 647 ip->i_d.di_ctime.t_nsec = iattr->ia_ctime.tv_nsec; in xfs_setattr_nonsize() 652 ip->i_d.di_mtime.t_nsec = iattr->ia_mtime.tv_nsec; in xfs_setattr_nonsize() 884 ip->i_d.di_ctime.t_nsec = iattr->ia_ctime.tv_nsec; in xfs_setattr_size() 889 ip->i_d.di_mtime.t_nsec = iattr->ia_mtime.tv_nsec; in xfs_setattr_size() 1149 inode->i_atime.tv_nsec = ip->i_d.di_atime.t_nsec; in xfs_setup_inode() 1151 inode->i_mtime.tv_nsec = ip->i_d.di_mtime.t_nsec; in xfs_setup_inode() 1153 inode->i_ctime.tv_nsec = ip->i_d.di_ctime.t_nsec; in xfs_setup_inode()
|
/fs/9p/ |
D | vfs_inode_dotl.c | 591 p9attr.atime_nsec = iattr->ia_atime.tv_nsec; in v9fs_vfs_setattr_dotl() 593 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec; in v9fs_vfs_setattr_dotl() 641 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl() 643 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl() 645 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl() 659 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl() 663 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl() 667 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
|
/fs/ufs/ |
D | inode.c | 607 inode->i_mtime.tv_nsec = 0; in ufs1_read_inode() 608 inode->i_atime.tv_nsec = 0; in ufs1_read_inode() 609 inode->i_ctime.tv_nsec = 0; in ufs1_read_inode() 655 inode->i_atime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_atimensec); in ufs2_read_inode() 656 inode->i_ctime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_ctimensec); in ufs2_read_inode() 657 inode->i_mtime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_mtimensec); in ufs2_read_inode() 797 ufs_inode->ui_atimensec = cpu_to_fs32(sb, inode->i_atime.tv_nsec); in ufs2_update_inode() 799 ufs_inode->ui_ctimensec = cpu_to_fs32(sb, inode->i_ctime.tv_nsec); in ufs2_update_inode() 801 ufs_inode->ui_mtimensec = cpu_to_fs32(sb, inode->i_mtime.tv_nsec); in ufs2_update_inode()
|
/fs/fat/ |
D | misc.c | 220 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix() 223 ts->tv_nsec = 0; in fat_time_fat2unix() 261 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
|
/fs/freevxfs/ |
D | vxfs_inode.c | 236 ip->i_atime.tv_nsec = 0; in vxfs_iinit() 237 ip->i_ctime.tv_nsec = 0; in vxfs_iinit() 238 ip->i_mtime.tv_nsec = 0; in vxfs_iinit()
|
/fs/ceph/ |
D | inode.c | 497 inode->i_ctime.tv_sec, inode->i_ctime.tv_nsec, in ceph_fill_file_time() 498 ctime->tv_sec, ctime->tv_nsec); in ceph_fill_file_time() 505 inode->i_mtime.tv_sec, inode->i_mtime.tv_nsec, in ceph_fill_file_time() 506 mtime->tv_sec, mtime->tv_nsec, in ceph_fill_file_time() 517 inode->i_mtime.tv_nsec, in ceph_fill_file_time() 518 mtime->tv_sec, mtime->tv_nsec); in ceph_fill_file_time() 524 inode->i_atime.tv_nsec, in ceph_fill_file_time() 525 atime->tv_sec, atime->tv_nsec); in ceph_fill_file_time() 1608 inode->i_atime.tv_sec, inode->i_atime.tv_nsec, in ceph_setattr() 1609 attr->ia_atime.tv_sec, attr->ia_atime.tv_nsec); in ceph_setattr() [all …]
|
/fs/ocfs2/ |
D | inode.c | 282 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_populate_inode() 284 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_populate_inode() 286 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_populate_inode() 1267 fe->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in ocfs2_mark_inode_dirty() 1269 fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in ocfs2_mark_inode_dirty() 1271 fe->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in ocfs2_mark_inode_dirty() 1302 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_refresh_inode() 1304 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_refresh_inode() 1306 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_refresh_inode()
|
/fs/minix/ |
D | inode.c | 468 inode->i_mtime.tv_nsec = 0; in V1_minix_iget() 469 inode->i_atime.tv_nsec = 0; in V1_minix_iget() 470 inode->i_ctime.tv_nsec = 0; in V1_minix_iget() 503 inode->i_mtime.tv_nsec = 0; in V2_minix_iget() 504 inode->i_atime.tv_nsec = 0; in V2_minix_iget() 505 inode->i_ctime.tv_nsec = 0; in V2_minix_iget()
|
/fs/efs/ |
D | inode.c | 106 inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; in efs_iget()
|
/fs/omfs/ |
D | inode.c | 136 ((inode->i_ctime.tv_nsec + 999)/1000); in __omfs_write_inode() 234 inode->i_atime.tv_nsec = nsecs; in omfs_iget() 235 inode->i_mtime.tv_nsec = nsecs; in omfs_iget() 236 inode->i_ctime.tv_nsec = nsecs; in omfs_iget()
|
/fs/sysv/ |
D | inode.c | 227 inode->i_ctime.tv_nsec = 0; in sysv_iget() 228 inode->i_atime.tv_nsec = 0; in sysv_iget() 229 inode->i_mtime.tv_nsec = 0; in sysv_iget()
|