Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 139) sorted by relevance

123456

/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.c225 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix()
228 ts->tv_sec = second; in fat_time_fat2unix()
241 time64_to_tm(ts->tv_sec, -fat_tz_offset(sbi), &tm); in fat_time_unix2fat()
269 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
275 return (struct timespec64){ ts.tv_sec & ~1ULL, 0 }; in fat_timespec64_trunc_2secs()
311 time64_t seconds = now->tv_sec - fat_tz_offset(sbi); in fat_truncate_time()
/fs/coda/
Dcoda_linux.c72 .tv_sec = ts.tv_sec, in coda_to_timespec64()
82 .tv_sec = ts64.tv_sec, in timespec64_to_coda()
126 if (attr->va_atime.tv_sec != -1) in coda_vattr_to_iattr()
128 if (attr->va_mtime.tv_sec != -1) in coda_vattr_to_iattr()
130 if (attr->va_ctime.tv_sec != -1) in coda_vattr_to_iattr()
152 vattr->va_atime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
154 vattr->va_mtime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
156 vattr->va_ctime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
/fs/
Dutimes.c192 tstimes[0].tv_sec = times[0].tv_sec; in do_futimesat()
194 tstimes[1].tv_sec = times[1].tv_sec; in do_futimesat()
219 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
220 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
241 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
242 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
273 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat()
275 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
Dstat.c284 tmp.st_atime = stat->atime.tv_sec; in cp_old_stat()
285 tmp.st_mtime = stat->mtime.tv_sec; in cp_old_stat()
286 tmp.st_ctime = stat->ctime.tv_sec; in cp_old_stat()
367 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat()
368 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat()
369 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat()
509 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat64()
511 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat64()
513 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat64()
587 tmp.stx_atime.tv_sec = stat->atime.tv_sec; in cp_statx()
[all …]
Dselect.c57 if (tv->tv_sec < 0) in __estimate_accuracy()
63 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy()
67 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy()
275 struct timespec64 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()
312 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_finish()
317 if (rts.tv_sec < 0) in poll_select_finish()
318 rts.tv_sec = rts.tv_nsec = 0; in poll_select_finish()
326 if (sizeof(rtv) > sizeof(rtv.tv_sec) + sizeof(rtv.tv_usec)) in poll_select_finish()
328 rtv.tv_sec = rts.tv_sec; in poll_select_finish()
[all …]
/fs/hostfs/
Dhostfs_user.c29 p->atime.tv_sec = buf->st_atime; in stat64_to_hostfs()
31 p->ctime.tv_sec = buf->st_ctime; in stat64_to_hostfs()
33 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs()
244 times[0].tv_sec = st.atime.tv_sec; in set_attr()
246 times[1].tv_sec = st.mtime.tv_sec; in set_attr()
250 times[0].tv_sec = attrs->ia_atime.tv_sec; in set_attr()
254 times[1].tv_sec = attrs->ia_mtime.tv_sec; in set_attr()
/fs/exfat/
Dmisc.c71 ts->tv_sec -= TIMEZONE_SEC(tz_off); in exfat_adjust_tz()
73 ts->tv_sec += TIMEZONE_SEC(0x80 - tz_off); in exfat_adjust_tz()
83 ts->tv_sec = mktime64(1980 + (d >> 9), d >> 5 & 0x000F, d & 0x001F, in exfat_get_entry_time()
89 ts->tv_sec += time_cs / 100; in exfat_get_entry_time()
99 ts->tv_sec -= sbi->options.time_offset * SECS_PER_MIN; in exfat_get_entry_time()
109 time64_to_tm(ts->tv_sec, 0, &tm); in exfat_set_entry_time()
135 ts->tv_sec = round_down(ts->tv_sec, 2); in exfat_truncate_atime()
/fs/hpfs/
Dnamei.c15 if (t == dir->i_mtime.tv_sec && in hpfs_update_directory_times()
16 t == dir->i_ctime.tv_sec) in hpfs_update_directory_times()
18 dir->i_mtime.tv_sec = dir->i_ctime.tv_sec = t; in hpfs_update_directory_times()
62 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir()
170 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_create()
253 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mknod()
329 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_symlink()
Dinode.c39 i->i_ctime.tv_sec = i->i_ctime.tv_nsec = 0; in hpfs_init_inode()
40 i->i_mtime.tv_sec = i->i_mtime.tv_nsec = 0; in hpfs_init_inode()
41 i->i_atime.tv_sec = i->i_atime.tv_nsec = 0; in hpfs_init_inode()
233 de->write_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_mtime.tv_sec)); in hpfs_write_inode_nolock()
234 de->read_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_atime.tv_sec)); in hpfs_write_inode_nolock()
235 de->creation_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_ctime.tv_sec)); in hpfs_write_inode_nolock()
243 de->write_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_mtime.tv_sec)); in hpfs_write_inode_nolock()
244 de->read_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_atime.tv_sec)); in hpfs_write_inode_nolock()
245 de->creation_date = cpu_to_le32(gmt_to_local(i->i_sb, i->i_ctime.tv_sec)); in hpfs_write_inode_nolock()
Ddir.c280 if (!result->i_ctime.tv_sec) { in hpfs_lookup()
281 if (!(result->i_ctime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->creation_date)))) in hpfs_lookup()
282 result->i_ctime.tv_sec = 1; in hpfs_lookup()
284 result->i_mtime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->write_date)); in hpfs_lookup()
286 result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->read_date)); in hpfs_lookup()
/fs/hfs/
Dsysdep.c31 inode->i_ctime.tv_sec += diff; in hfs_revalidate_dentry()
32 inode->i_atime.tv_sec += diff; in hfs_revalidate_dentry()
33 inode->i_mtime.tv_sec += diff; in hfs_revalidate_dentry()
/fs/proc/
Duptime.c30 idle.tv_sec = div_u64_rem(idle_nsec, NSEC_PER_SEC, &rem); in uptime_proc_show()
33 (unsigned long) uptime.tv_sec, in uptime_proc_show()
35 (unsigned long) idle.tv_sec, in uptime_proc_show()
/fs/xfs/
Dxfs_itable.c94 buf->bs_atime = inode->i_atime.tv_sec; in xfs_bulkstat_one_int()
96 buf->bs_mtime = inode->i_mtime.tv_sec; in xfs_bulkstat_one_int()
98 buf->bs_ctime = inode->i_ctime.tv_sec; in xfs_bulkstat_one_int()
112 buf->bs_btime = ip->i_crtime.tv_sec; in xfs_bulkstat_one_int()
318 bs1->bs_atime.tv_sec = bstat->bs_atime; in xfs_bulkstat_to_bstat()
319 bs1->bs_mtime.tv_sec = bstat->bs_mtime; in xfs_bulkstat_to_bstat()
320 bs1->bs_ctime.tv_sec = bstat->bs_ctime; in xfs_bulkstat_to_bstat()
/fs/udf/
Dudftime.c60 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time()
62 dest->tv_sec -= offset * 60; in udf_disk_stamp_to_time()
83 seconds = ts.tv_sec + offset * 60; in udf_time_to_disk_stamp()
/fs/sysv/
Dinode.c203 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime); in sysv_iget()
204 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime); in sysv_iget()
205 inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_ctime); in sysv_iget()
257 raw_inode->i_atime = cpu_to_fs32(sbi, inode->i_atime.tv_sec); in __sysv_write_inode()
258 raw_inode->i_mtime = cpu_to_fs32(sbi, inode->i_mtime.tv_sec); in __sysv_write_inode()
259 raw_inode->i_ctime = cpu_to_fs32(sbi, inode->i_ctime.tv_sec); in __sysv_write_inode()
/fs/ufs/
Dinode.c582 inode->i_atime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec); in ufs1_read_inode()
583 inode->i_ctime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec); in ufs1_read_inode()
584 inode->i_mtime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec); in ufs1_read_inode()
628 inode->i_atime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_atime); in ufs2_read_inode()
629 inode->i_ctime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_ctime); in ufs2_read_inode()
630 inode->i_mtime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_mtime); in ufs2_read_inode()
727 ufs_inode->ui_atime.tv_sec = cpu_to_fs32(sb, inode->i_atime.tv_sec); in ufs1_update_inode()
729 ufs_inode->ui_ctime.tv_sec = cpu_to_fs32(sb, inode->i_ctime.tv_sec); in ufs1_update_inode()
731 ufs_inode->ui_mtime.tv_sec = cpu_to_fs32(sb, inode->i_mtime.tv_sec); in ufs1_update_inode()
771 ufs_inode->ui_atime = cpu_to_fs64(sb, inode->i_atime.tv_sec); in ufs2_update_inode()
[all …]
/fs/minix/
Dinode.c504 inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec = raw_inode->i_time; in V1_minix_iget()
544 inode->i_mtime.tv_sec = raw_inode->i_mtime; in V2_minix_iget()
545 inode->i_atime.tv_sec = raw_inode->i_atime; in V2_minix_iget()
546 inode->i_ctime.tv_sec = raw_inode->i_ctime; in V2_minix_iget()
596 raw_inode->i_time = inode->i_mtime.tv_sec; in V1_minix_update_inode()
623 raw_inode->i_mtime = inode->i_mtime.tv_sec; in V2_minix_update_inode()
624 raw_inode->i_atime = inode->i_atime.tv_sec; in V2_minix_update_inode()
625 raw_inode->i_ctime = inode->i_ctime.tv_sec; in V2_minix_update_inode()
/fs/cifs/
Dfscache.c134 auxdata.last_write_time_sec = cifsi->vfs_inode.i_mtime.tv_sec; in cifs_fscache_acquire_inode_cookie()
135 auxdata.last_change_time_sec = cifsi->vfs_inode.i_ctime.tv_sec; in cifs_fscache_acquire_inode_cookie()
173 auxdata.last_write_time_sec = cifsi->vfs_inode.i_mtime.tv_sec; in cifs_fscache_release_inode_cookie()
174 auxdata.last_change_time_sec = cifsi->vfs_inode.i_ctime.tv_sec; in cifs_fscache_release_inode_cookie()
194 auxdata.last_write_time_sec = cifsi->vfs_inode.i_mtime.tv_sec; in cifs_fscache_update_inode_cookie()
195 auxdata.last_change_time_sec = cifsi->vfs_inode.i_ctime.tv_sec; in cifs_fscache_update_inode_cookie()
/fs/erofs/
Dinode.c118 inode->i_ctime.tv_sec = le64_to_cpu(die->i_ctime); in erofs_read_inode()
161 inode->i_ctime.tv_sec = sbi->build_time; in erofs_read_inode()
189 inode->i_mtime.tv_sec = inode->i_ctime.tv_sec; in erofs_read_inode()
190 inode->i_atime.tv_sec = inode->i_ctime.tv_sec; in erofs_read_inode()
/fs/ntfs/
Dtime.h40 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs()
85 ts.tv_sec = t; in ntfs2utc()
/fs/bfs/
Dinode.c84 inode->i_atime.tv_sec = le32_to_cpu(di->i_atime); in bfs_iget()
85 inode->i_mtime.tv_sec = le32_to_cpu(di->i_mtime); in bfs_iget()
86 inode->i_ctime.tv_sec = le32_to_cpu(di->i_ctime); in bfs_iget()
145 di->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in bfs_write_inode()
146 di->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in bfs_write_inode()
147 di->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); in bfs_write_inode()
/fs/nfs/
Dfscache-index.c87 auxdata.mtime_sec = nfsi->vfs_inode.i_mtime.tv_sec; in nfs_fscache_inode_check_aux()
89 auxdata.ctime_sec = nfsi->vfs_inode.i_ctime.tv_sec; in nfs_fscache_inode_check_aux()
/fs/squashfs/
Dinode.c62 inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode()
63 inode->i_atime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()
64 inode->i_ctime.tv_sec = inode->i_mtime.tv_sec; in squashfs_new_inode()

123456