Home
last modified time | relevance | path

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

12345

/fs/
Dutimes.c27 if (!nsec_valid(times[0].tv_nsec) || in vfs_utimes()
28 !nsec_valid(times[1].tv_nsec)) in vfs_utimes()
30 if (times[0].tv_nsec == UTIME_NOW && in vfs_utimes()
31 times[1].tv_nsec == UTIME_NOW) in vfs_utimes()
41 if (times[0].tv_nsec == UTIME_OMIT) in vfs_utimes()
43 else if (times[0].tv_nsec != UTIME_NOW) { in vfs_utimes()
48 if (times[1].tv_nsec == UTIME_OMIT) in vfs_utimes()
50 else if (times[1].tv_nsec != UTIME_NOW) { in vfs_utimes()
158 if (tstimes[0].tv_nsec == UTIME_OMIT && in SYSCALL_DEFINE4()
159 tstimes[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
[all …]
Dstat.c397 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat()
398 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat()
399 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat()
536 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat64()
538 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64()
540 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat64()
614 tmp.stx_atime.tv_nsec = stat->atime.tv_nsec; in cp_statx()
616 tmp.stx_btime.tv_nsec = stat->btime.tv_nsec; in cp_statx()
618 tmp.stx_ctime.tv_nsec = stat->ctime.tv_nsec; in cp_statx()
620 tmp.stx_mtime.tv_nsec = stat->mtime.tv_nsec; in cp_statx()
[all …]
Dselect.c67 slack = tv->tv_nsec / divfactor; in __estimate_accuracy()
276 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
283 to->tv_sec = to->tv_nsec = 0; in poll_select_set_timeout()
313 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_finish()
319 rts.tv_sec = rts.tv_nsec = 0; in poll_select_finish()
330 rtv.tv_usec = rts.tv_nsec / NSEC_PER_USEC; in poll_select_finish()
340 rtv.tv_usec = rts.tv_nsec / NSEC_PER_USEC; in poll_select_finish()
500 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_select()
756 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
897 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_poll()
[all …]
/fs/ext4/
Dinode-test.c89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L},
97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L},
113 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L},
121 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L},
129 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L},
137 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L},
145 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L},
153 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L},
161 .expected = {.tv_sec = 0x1ffffffffLL, .tv_nsec = 0L},
169 .expected = {.tv_sec = 0x200000000LL, .tv_nsec = 0L},
[all …]
/fs/fat/
Dfat_test.c35 .ts = {.tv_sec = 315532800LL, .tv_nsec = 0L},
43 .ts = {.tv_sec = 4354819198LL, .tv_nsec = 0L},
51 .ts = {.tv_sec = 315493200LL, .tv_nsec = 0L},
59 .ts = {.tv_sec = 4354858798LL, .tv_nsec = 0L},
67 .ts = {.tv_sec = 825552000LL, .tv_nsec = 0L},
75 .ts = {.tv_sec = 951782400LL, .tv_nsec = 0L},
83 .ts = {.tv_sec = 4107542400LL, .tv_nsec = 0L},
91 .ts = {.tv_sec = 1078014600LL, .tv_nsec = 0L},
99 .ts = {.tv_sec = 1078097400LL, .tv_nsec = 0L},
107 .ts = {.tv_sec = 946684799LL, .tv_nsec = 0L},
[all …]
Dmisc.c232 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
235 ts->tv_nsec = 0; in fat_time_fat2unix()
275 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
/fs/coda/
Dcoda_linux.c73 .tv_nsec = ts.tv_nsec, in coda_to_timespec64()
83 .tv_nsec = ts64.tv_nsec, in timespec64_to_coda()
152 vattr->va_atime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
154 vattr->va_mtime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
156 vattr->va_ctime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
/fs/udf/
Dudftime.c63 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
69 dest->tv_nsec %= NSEC_PER_SEC; in udf_disk_stamp_to_time()
91 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
92 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
94 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
/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.c19 dir->i_mtime.tv_nsec = dir->i_ctime.tv_nsec = 0; in hpfs_update_directory_times()
63 result->i_ctime.tv_nsec = 0; in hpfs_mkdir()
64 result->i_mtime.tv_nsec = 0; in hpfs_mkdir()
65 result->i_atime.tv_nsec = 0; in hpfs_mkdir()
171 result->i_ctime.tv_nsec = 0; in hpfs_create()
172 result->i_mtime.tv_nsec = 0; in hpfs_create()
173 result->i_atime.tv_nsec = 0; in hpfs_create()
254 result->i_ctime.tv_nsec = 0; in hpfs_mknod()
255 result->i_mtime.tv_nsec = 0; in hpfs_mknod()
256 result->i_atime.tv_nsec = 0; in hpfs_mknod()
[all …]
/fs/proc/
Duptime.c32 idle.tv_nsec = rem; in uptime_proc_show()
35 (uptime.tv_nsec / (NSEC_PER_SEC / 100)), in uptime_proc_show()
37 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_proc_show()
/fs/xfs/
Dxfs_itable.c100 buf->bs_atime_nsec = inode->i_atime.tv_nsec; in xfs_bulkstat_one_int()
102 buf->bs_mtime_nsec = inode->i_mtime.tv_nsec; in xfs_bulkstat_one_int()
104 buf->bs_ctime_nsec = inode->i_ctime.tv_nsec; in xfs_bulkstat_one_int()
124 buf->bs_btime_nsec = ip->i_crtime.tv_nsec; in xfs_bulkstat_one_int()
336 bs1->bs_atime.tv_nsec = bstat->bs_atime_nsec; in xfs_bulkstat_to_bstat()
337 bs1->bs_mtime.tv_nsec = bstat->bs_mtime_nsec; in xfs_bulkstat_to_bstat()
338 bs1->bs_ctime.tv_nsec = bstat->bs_ctime_nsec; in xfs_bulkstat_to_bstat()
/fs/smb/server/
Dmisc.c356 ts.tv_nsec = do_div(abs_t, 10000000) * 100; in ksmbd_NTtimeToUnix()
357 ts.tv_nsec = -ts.tv_nsec; in ksmbd_NTtimeToUnix()
361 ts.tv_nsec = do_div(abs_t, 10000000) * 100; in ksmbd_NTtimeToUnix()
372 return (u64)t.tv_sec * 10000000 + t.tv_nsec / 100 + NTFS_TIME_OFFSET; in ksmbd_UnixTimeToNT()
/fs/exfat/
Dmisc.c81 ts->tv_nsec = (time_cs % 100) * 10 * NSEC_PER_MSEC; in exfat_get_entry_time()
83 ts->tv_nsec = 0; in exfat_get_entry_time()
109 ts->tv_nsec / (10 * NSEC_PER_MSEC); in exfat_set_entry_time()
126 ts->tv_nsec = 0; in exfat_truncate_atime()
/fs/erofs/
Dinode.c112 inode->i_ctime.tv_nsec = le32_to_cpu(die->i_mtime_nsec); in erofs_read_inode()
155 inode->i_ctime.tv_nsec = sbi->build_time_nsec; in erofs_read_inode()
184 inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec; in erofs_read_inode()
185 inode->i_atime.tv_nsec = inode->i_ctime.tv_nsec; in erofs_read_inode()
/fs/ntfs/
Dtime.h40 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs()
84 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc()
/fs/9p/
Dvfs_inode_dotl.c568 p9attr.atime_nsec = iattr->ia_atime.tv_nsec; in v9fs_vfs_setattr_dotl()
572 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec; in v9fs_vfs_setattr_dotl()
636 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
638 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
640 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
655 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
659 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
663 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
/fs/pstore/
Dram.c151 (time64_t *)&time->tv_sec, &time->tv_nsec, &data_type, in ramoops_read_kmsg_hdr()
153 time->tv_nsec *= 1000; in ramoops_read_kmsg_hdr()
159 (time64_t *)&time->tv_sec, &time->tv_nsec, in ramoops_read_kmsg_hdr()
161 time->tv_nsec *= 1000; in ramoops_read_kmsg_hdr()
165 time->tv_nsec = 0; in ramoops_read_kmsg_hdr()
191 record->time.tv_nsec = 0; in ramoops_pstore_read()
301 record->time.tv_nsec / 1000, in ramoops_write_kmsg_hdr()
/fs/nfs/
Dfscache.h90 auxdata->mtime_nsec = inode->i_mtime.tv_nsec; in nfs_fscache_update_auxdata()
92 auxdata->ctime_nsec = inode->i_ctime.tv_nsec; in nfs_fscache_update_auxdata()
/fs/f2fs/
Dinode.c360 inode->i_atime.tv_nsec = le32_to_cpu(ri->i_atime_nsec); in do_read_inode()
361 inode->i_ctime.tv_nsec = le32_to_cpu(ri->i_ctime_nsec); in do_read_inode()
362 inode->i_mtime.tv_nsec = le32_to_cpu(ri->i_mtime_nsec); in do_read_inode()
445 fi->i_crtime.tv_nsec = le32_to_cpu(ri->i_crtime_nsec); in do_read_inode()
640 ri->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in f2fs_update_inode()
641 ri->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in f2fs_update_inode()
642 ri->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in f2fs_update_inode()
678 cpu_to_le32(F2FS_I(inode)->i_crtime.tv_nsec); in f2fs_update_inode()
/fs/smb/client/
Dfscache.h56 cd->last_write_time_nsec = cpu_to_le32(cifsi->netfs.inode.i_mtime.tv_nsec); in cifs_fscache_fill_coherency()
58 cd->last_change_time_nsec = cpu_to_le32(cifsi->netfs.inode.i_ctime.tv_nsec); in cifs_fscache_fill_coherency()
/fs/minix/
Dinode.c505 inode->i_mtime.tv_nsec = 0; in V1_minix_iget()
506 inode->i_atime.tv_nsec = 0; in V1_minix_iget()
507 inode->i_ctime.tv_nsec = 0; in V1_minix_iget()
547 inode->i_mtime.tv_nsec = 0; in V2_minix_iget()
548 inode->i_atime.tv_nsec = 0; in V2_minix_iget()
549 inode->i_ctime.tv_nsec = 0; in V2_minix_iget()
/fs/freevxfs/
Dvxfs_inode.c115 inode->i_atime.tv_nsec = 0; in dip2vip_cpy()
116 inode->i_ctime.tv_nsec = 0; in dip2vip_cpy()
117 inode->i_mtime.tv_nsec = 0; in dip2vip_cpy()
/fs/efs/
Dinode.c109 inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; in efs_iget()
/fs/ocfs2/
Dinode.c306 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_populate_inode()
308 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_populate_inode()
310 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_populate_inode()
1316 fe->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in ocfs2_mark_inode_dirty()
1318 fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in ocfs2_mark_inode_dirty()
1320 fe->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in ocfs2_mark_inode_dirty()
1352 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_refresh_inode()
1354 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_refresh_inode()
1356 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_refresh_inode()

12345