Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 105) sorted by relevance

12345

/fs/
Dutimes.c35 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
36 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
62 if (times && times[0].tv_nsec == UTIME_NOW && in utimes_common()
63 times[1].tv_nsec == UTIME_NOW) in utimes_common()
68 if (times[0].tv_nsec == UTIME_OMIT) in utimes_common()
70 else if (times[0].tv_nsec != UTIME_NOW) { in utimes_common()
72 newattrs.ia_atime.tv_nsec = times[0].tv_nsec; in utimes_common()
76 if (times[1].tv_nsec == UTIME_OMIT) in utimes_common()
78 else if (times[1].tv_nsec != UTIME_NOW) { in utimes_common()
80 newattrs.ia_mtime.tv_nsec = times[1].tv_nsec; in utimes_common()
[all …]
Dcompat.c84 tv[0].tv_nsec = 0; in COMPAT_SYSCALL_DEFINE2()
85 tv[1].tv_nsec = 0; in COMPAT_SYSCALL_DEFINE2()
99 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in COMPAT_SYSCALL_DEFINE4()
111 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in COMPAT_SYSCALL_DEFINE3()
113 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in COMPAT_SYSCALL_DEFINE3()
115 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in COMPAT_SYSCALL_DEFINE3()
116 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in COMPAT_SYSCALL_DEFINE3()
118 tv[0].tv_nsec *= 1000; in COMPAT_SYSCALL_DEFINE3()
119 tv[1].tv_nsec *= 1000; in COMPAT_SYSCALL_DEFINE3()
152 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_compat_stat()
[all …]
Dselect.c65 slack = tv->tv_nsec / divfactor; in __estimate_accuracy()
275 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
282 to->tv_sec = to->tv_nsec = 0; in poll_select_set_timeout()
303 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_copy_remaining()
309 rts.tv_sec = rts.tv_nsec = 0; in poll_select_copy_remaining()
315 rtv.tv_usec = rts.tv_nsec / NSEC_PER_USEC; in poll_select_copy_remaining()
420 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_select()
667 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
800 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_poll()
952 end_time.tv_nsec = restart_block->poll.tv_nsec; in do_restart_poll()
[all …]
Dstat.c257 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat()
258 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat()
259 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat()
387 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat64()
389 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64()
391 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat64()
/fs/hostfs/
Dhostfs_user.c30 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()
245 times[0].tv_usec = st.atime.tv_nsec / 1000; in set_attr()
247 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr()
251 times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000; in set_attr()
255 times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000; in set_attr()
/fs/hpfs/
Dnamei.c18 dir->i_mtime.tv_nsec = dir->i_ctime.tv_nsec = 0; in hpfs_update_directory_times()
61 result->i_ctime.tv_nsec = 0; in hpfs_mkdir()
62 result->i_mtime.tv_nsec = 0; in hpfs_mkdir()
63 result->i_atime.tv_nsec = 0; in hpfs_mkdir()
168 result->i_ctime.tv_nsec = 0; in hpfs_create()
169 result->i_mtime.tv_nsec = 0; in hpfs_create()
170 result->i_atime.tv_nsec = 0; in hpfs_create()
250 result->i_ctime.tv_nsec = 0; in hpfs_mknod()
251 result->i_mtime.tv_nsec = 0; in hpfs_mknod()
252 result->i_atime.tv_nsec = 0; in hpfs_mknod()
[all …]
Ddir.c274 result->i_ctime.tv_nsec = 0; in hpfs_lookup()
276 result->i_mtime.tv_nsec = 0; in hpfs_lookup()
278 result->i_atime.tv_nsec = 0; in hpfs_lookup()
/fs/proc/
Duptime.c26 idle.tv_nsec = rem; in uptime_proc_show()
29 (uptime.tv_nsec / (NSEC_PER_SEC / 100)), in uptime_proc_show()
31 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_proc_show()
/fs/udf/
Dudftime.c114 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
162 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
163 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
165 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
/fs/nfsd/
Dnfsxdr.c121 iap->ia_atime.tv_nsec = tmp1 * 1000; in decode_sattr()
127 iap->ia_mtime.tv_nsec = tmp1 * 1000; in decode_sattr()
189 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); in encode_fattr()
192 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); in encode_fattr()
194 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); in encode_fattr()
/fs/ntfs/
Dtime.h54 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/
Dcoda_linux.c133 vattr->va_atime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr()
135 vattr->va_mtime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr()
137 vattr->va_ctime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr()
/fs/f2fs/
Dinode.c220 inode->i_atime.tv_nsec = le32_to_cpu(ri->i_atime_nsec); in do_read_inode()
221 inode->i_ctime.tv_nsec = le32_to_cpu(ri->i_ctime_nsec); in do_read_inode()
222 inode->i_mtime.tv_nsec = le32_to_cpu(ri->i_mtime_nsec); in do_read_inode()
284 fi->i_crtime.tv_nsec = le32_to_cpu(ri->i_crtime_nsec); in do_read_inode()
408 ri->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in update_inode()
409 ri->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in update_inode()
410 ri->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in update_inode()
441 cpu_to_le32(F2FS_I(inode)->i_crtime.tv_nsec); in update_inode()
/fs/xfs/
Dxfs_trans_inode.c82 ip->i_d.di_mtime.t_nsec = tv.tv_nsec; in xfs_trans_ichgtime()
88 ip->i_d.di_ctime.t_nsec = tv.tv_nsec; in xfs_trans_ichgtime()
Dxfs_iops.c523 ip->i_d.di_atime.t_nsec = iattr->ia_atime.tv_nsec; in xfs_setattr_time()
528 ip->i_d.di_ctime.t_nsec = iattr->ia_ctime.tv_nsec; in xfs_setattr_time()
533 ip->i_d.di_mtime.t_nsec = iattr->ia_mtime.tv_nsec; in xfs_setattr_time()
992 ip->i_d.di_ctime.t_nsec = (__int32_t)now->tv_nsec; in xfs_vn_update_time()
997 ip->i_d.di_mtime.t_nsec = (__int32_t)now->tv_nsec; in xfs_vn_update_time()
1002 ip->i_d.di_atime.t_nsec = (__int32_t)now->tv_nsec; in xfs_vn_update_time()
1251 inode->i_atime.tv_nsec = ip->i_d.di_atime.t_nsec; in xfs_setup_inode()
1253 inode->i_mtime.tv_nsec = ip->i_d.di_mtime.t_nsec; in xfs_setup_inode()
1255 inode->i_ctime.tv_nsec = ip->i_d.di_ctime.t_nsec; in xfs_setup_inode()
/fs/9p/
Dvfs_inode_dotl.c576 p9attr.atime_nsec = iattr->ia_atime.tv_nsec; in v9fs_vfs_setattr_dotl()
578 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec; in v9fs_vfs_setattr_dotl()
625 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
627 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
629 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
644 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
648 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
652 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
/fs/fat/
Dmisc.c219 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
222 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/pstore/
Dram.c161 &time->tv_nsec, &data_type, &header_length) == 3) { in ramoops_read_kmsg_hdr()
167 &time->tv_sec, &time->tv_nsec, &header_length) == 2) { in ramoops_read_kmsg_hdr()
171 time->tv_nsec = 0; in ramoops_read_kmsg_hdr()
199 time->tv_nsec = 0; in ramoops_pstore_read()
256 timestamp.tv_nsec = 0; in ramoops_write_kmsg_hdr()
259 (long)timestamp.tv_sec, (long)(timestamp.tv_nsec / 1000), in ramoops_write_kmsg_hdr()
/fs/freevxfs/
Dvxfs_inode.c237 ip->i_atime.tv_nsec = 0; in vxfs_iinit()
238 ip->i_ctime.tv_nsec = 0; in vxfs_iinit()
239 ip->i_mtime.tv_nsec = 0; in vxfs_iinit()
/fs/ocfs2/
Dinode.c311 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_populate_inode()
313 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_populate_inode()
315 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_populate_inode()
1290 fe->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in ocfs2_mark_inode_dirty()
1292 fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in ocfs2_mark_inode_dirty()
1294 fe->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in ocfs2_mark_inode_dirty()
1326 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_refresh_inode()
1328 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_refresh_inode()
1330 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_refresh_inode()
/fs/minix/
Dinode.c506 inode->i_mtime.tv_nsec = 0; in V1_minix_iget()
507 inode->i_atime.tv_nsec = 0; in V1_minix_iget()
508 inode->i_ctime.tv_nsec = 0; in V1_minix_iget()
548 inode->i_mtime.tv_nsec = 0; in V2_minix_iget()
549 inode->i_atime.tv_nsec = 0; in V2_minix_iget()
550 inode->i_ctime.tv_nsec = 0; in V2_minix_iget()
/fs/efs/
Dinode.c106 inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; in efs_iget()
/fs/ufs/
Dinode.c571 inode->i_mtime.tv_nsec = 0; in ufs1_read_inode()
572 inode->i_atime.tv_nsec = 0; in ufs1_read_inode()
573 inode->i_ctime.tv_nsec = 0; in ufs1_read_inode()
619 inode->i_atime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_atimensec); in ufs2_read_inode()
620 inode->i_ctime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_ctimensec); in ufs2_read_inode()
621 inode->i_mtime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_mtimensec); in ufs2_read_inode()
761 ufs_inode->ui_atimensec = cpu_to_fs32(sb, inode->i_atime.tv_nsec); in ufs2_update_inode()
763 ufs_inode->ui_ctimensec = cpu_to_fs32(sb, inode->i_ctime.tv_nsec); in ufs2_update_inode()
765 ufs_inode->ui_mtimensec = cpu_to_fs32(sb, inode->i_mtime.tv_nsec); in ufs2_update_inode()
/fs/ceph/
Dinode.c606 inode->i_ctime.tv_sec, inode->i_ctime.tv_nsec, in ceph_fill_file_time()
607 ctime->tv_sec, ctime->tv_nsec); in ceph_fill_file_time()
614 inode->i_mtime.tv_sec, inode->i_mtime.tv_nsec, in ceph_fill_file_time()
615 mtime->tv_sec, mtime->tv_nsec, in ceph_fill_file_time()
626 inode->i_mtime.tv_nsec, in ceph_fill_file_time()
627 mtime->tv_sec, mtime->tv_nsec); in ceph_fill_file_time()
633 inode->i_atime.tv_nsec, in ceph_fill_file_time()
634 atime->tv_sec, atime->tv_nsec); in ceph_fill_file_time()
1876 inode->i_atime.tv_sec, inode->i_atime.tv_nsec, in __ceph_setattr()
1877 attr->ia_atime.tv_sec, attr->ia_atime.tv_nsec); in __ceph_setattr()
[all …]
/fs/sdcardfs/
Dlookup.c143 inode->i_atime.tv_nsec = 0; in sdcardfs_iget()
145 inode->i_mtime.tv_nsec = 0; in sdcardfs_iget()
147 inode->i_ctime.tv_nsec = 0; in sdcardfs_iget()

12345