/fs/coda/ |
D | coda_linux.c | 72 .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/ |
D | utimes.c | 182 tstimes[0].tv_sec = times[0].tv_sec; in do_futimesat() 184 tstimes[1].tv_sec = times[1].tv_sec; in do_futimesat() 209 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 210 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 231 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2() 232 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2() 263 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat() 265 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
|
D | stat.c | 240 tmp.st_atime = stat->atime.tv_sec; in cp_old_stat() 241 tmp.st_mtime = stat->mtime.tv_sec; in cp_old_stat() 242 tmp.st_ctime = stat->ctime.tv_sec; in cp_old_stat() 323 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat() 324 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat() 325 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat() 465 tmp.st_atime = stat->atime.tv_sec; in cp_new_stat64() 467 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat64() 469 tmp.st_ctime = stat->ctime.tv_sec; in cp_new_stat64() 543 tmp.stx_atime.tv_sec = stat->atime.tv_sec; in cp_statx() [all …]
|
D | select.c | 57 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/ |
D | hostfs_user.c | 29 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/hpfs/ |
D | namei.c | 15 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() 61 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir() 168 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_create() 250 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mknod() 325 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_symlink()
|
D | inode.c | 39 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()
|
D | dir.c | 280 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/ |
D | sysdep.c | 31 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/ |
D | uptime.c | 23 idle.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in uptime_proc_show() 26 (unsigned long) uptime.tv_sec, in uptime_proc_show() 28 (unsigned long) idle.tv_sec, in uptime_proc_show()
|
/fs/fat/ |
D | misc.c | 225 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix() 228 ts->tv_sec = second; in fat_time_fat2unix() 238 time64_to_tm(ts->tv_sec, -fat_tz_offset(sbi), &tm); in fat_time_unix2fat() 266 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat() 272 return (struct timespec64){ ts.tv_sec & ~1ULL, 0 }; in fat_timespec64_trunc_2secs() 300 time64_t seconds = now->tv_sec - fat_tz_offset(sbi); in fat_truncate_time()
|
/fs/xfs/ |
D | xfs_itable.c | 94 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() 285 bs1->bs_atime.tv_sec = bstat->bs_atime; in xfs_bulkstat_to_bstat() 286 bs1->bs_mtime.tv_sec = bstat->bs_mtime; in xfs_bulkstat_to_bstat() 287 bs1->bs_ctime.tv_sec = bstat->bs_ctime; in xfs_bulkstat_to_bstat()
|
/fs/udf/ |
D | udftime.c | 60 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/ |
D | inode.c | 204 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime); in sysv_iget() 205 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime); in sysv_iget() 206 inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_ctime); in sysv_iget() 258 raw_inode->i_atime = cpu_to_fs32(sbi, inode->i_atime.tv_sec); in __sysv_write_inode() 259 raw_inode->i_mtime = cpu_to_fs32(sbi, inode->i_mtime.tv_sec); in __sysv_write_inode() 260 raw_inode->i_ctime = cpu_to_fs32(sbi, inode->i_ctime.tv_sec); in __sysv_write_inode()
|
/fs/ufs/ |
D | inode.c | 581 inode->i_atime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec); in ufs1_read_inode() 582 inode->i_ctime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec); in ufs1_read_inode() 583 inode->i_mtime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec); in ufs1_read_inode() 627 inode->i_atime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_atime); in ufs2_read_inode() 628 inode->i_ctime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_ctime); in ufs2_read_inode() 629 inode->i_mtime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_mtime); in ufs2_read_inode() 726 ufs_inode->ui_atime.tv_sec = cpu_to_fs32(sb, inode->i_atime.tv_sec); in ufs1_update_inode() 728 ufs_inode->ui_ctime.tv_sec = cpu_to_fs32(sb, inode->i_ctime.tv_sec); in ufs1_update_inode() 730 ufs_inode->ui_mtime.tv_sec = cpu_to_fs32(sb, inode->i_mtime.tv_sec); in ufs1_update_inode() 770 ufs_inode->ui_atime = cpu_to_fs64(sb, inode->i_atime.tv_sec); in ufs2_update_inode() [all …]
|
/fs/minix/ |
D | inode.c | 504 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/erofs/ |
D | inode.c | 118 inode->i_ctime.tv_sec = le64_to_cpu(die->i_ctime); in erofs_read_inode() 158 inode->i_ctime.tv_sec = sbi->build_time; in erofs_read_inode() 173 inode->i_mtime.tv_sec = inode->i_ctime.tv_sec; in erofs_read_inode() 174 inode->i_atime.tv_sec = inode->i_ctime.tv_sec; in erofs_read_inode()
|
/fs/ntfs/ |
D | time.h | 40 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs() 85 ts.tv_sec = t; in ntfs2utc()
|
/fs/bfs/ |
D | inode.c | 83 inode->i_atime.tv_sec = le32_to_cpu(di->i_atime); in bfs_iget() 84 inode->i_mtime.tv_sec = le32_to_cpu(di->i_mtime); in bfs_iget() 85 inode->i_ctime.tv_sec = le32_to_cpu(di->i_ctime); in bfs_iget() 144 di->i_atime = cpu_to_le32(inode->i_atime.tv_sec); in bfs_write_inode() 145 di->i_mtime = cpu_to_le32(inode->i_mtime.tv_sec); in bfs_write_inode() 146 di->i_ctime = cpu_to_le32(inode->i_ctime.tv_sec); in bfs_write_inode()
|
/fs/cifs/ |
D | fscache.c | 132 auxdata.last_write_time_sec = cifsi->vfs_inode.i_mtime.tv_sec; in cifs_fscache_acquire_inode_cookie() 133 auxdata.last_change_time_sec = cifsi->vfs_inode.i_ctime.tv_sec; in cifs_fscache_acquire_inode_cookie() 171 auxdata.last_write_time_sec = cifsi->vfs_inode.i_mtime.tv_sec; in cifs_fscache_release_inode_cookie() 172 auxdata.last_change_time_sec = cifsi->vfs_inode.i_ctime.tv_sec; in cifs_fscache_release_inode_cookie()
|
D | cache.c | 131 auxdata.last_write_time_sec = cifsi->vfs_inode.i_mtime.tv_sec; in cifs_fscache_inode_check_aux() 132 auxdata.last_change_time_sec = cifsi->vfs_inode.i_ctime.tv_sec; in cifs_fscache_inode_check_aux()
|
/fs/nfs/ |
D | fscache-index.c | 87 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/ |
D | inode.c | 62 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()
|
/fs/9p/ |
D | vfs_inode_dotl.c | 558 p9attr.atime_sec = iattr->ia_atime.tv_sec; in v9fs_vfs_setattr_dotl() 560 p9attr.mtime_sec = iattr->ia_mtime.tv_sec; in v9fs_vfs_setattr_dotl() 607 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl() 609 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl() 611 inode->i_ctime.tv_sec = stat->st_ctime_sec; in v9fs_stat2inode_dotl() 626 inode->i_atime.tv_sec = stat->st_atime_sec; in v9fs_stat2inode_dotl() 630 inode->i_mtime.tv_sec = stat->st_mtime_sec; in v9fs_stat2inode_dotl() 634 inode->i_ctime.tv_sec = stat->st_ctime_sec; in v9fs_stat2inode_dotl()
|
/fs/affs/ |
D | inode.c | 152 inode->i_mtime.tv_sec = inode->i_atime.tv_sec = inode->i_ctime.tv_sec in affs_iget() 190 affs_secs_to_datestamp(inode->i_mtime.tv_sec, in affs_write_inode() 195 affs_secs_to_datestamp(inode->i_mtime.tv_sec, &tail->change); in affs_write_inode()
|