Home
last modified time | relevance | path

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

12345

/fs/
Dutimes.c30 if (times && times[0].tv_nsec == UTIME_NOW && in utimes_common()
31 times[1].tv_nsec == UTIME_NOW) in utimes_common()
36 if (times[0].tv_nsec == UTIME_OMIT) in utimes_common()
38 else if (times[0].tv_nsec != UTIME_NOW) { in utimes_common()
43 if (times[1].tv_nsec == UTIME_OMIT) in utimes_common()
45 else if (times[1].tv_nsec != UTIME_NOW) { in utimes_common()
93 if (times && (!nsec_valid(times[0].tv_nsec) || in do_utimes()
94 !nsec_valid(times[1].tv_nsec))) { in do_utimes()
148 if (tstimes[0].tv_nsec == UTIME_OMIT && in SYSCALL_DEFINE4()
149 tstimes[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
[all …]
Dstat.c327 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat()
328 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat()
329 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat()
466 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat64()
468 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64()
470 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat64()
544 tmp.stx_atime.tv_nsec = stat->atime.tv_nsec; in cp_statx()
546 tmp.stx_btime.tv_nsec = stat->btime.tv_nsec; in cp_statx()
548 tmp.stx_ctime.tv_nsec = stat->ctime.tv_nsec; in cp_statx()
550 tmp.stx_mtime.tv_nsec = stat->mtime.tv_nsec; in cp_statx()
[all …]
Dselect.c66 slack = tv->tv_nsec / 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()
318 rts.tv_sec = rts.tv_nsec = 0; in poll_select_finish()
329 rtv.tv_usec = rts.tv_nsec / NSEC_PER_USEC; in poll_select_finish()
339 rtv.tv_usec = rts.tv_nsec / NSEC_PER_USEC; in poll_select_finish()
498 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_select()
754 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
885 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_poll()
[all …]
/fs/coda/
Dcoda_linux.c73 .tv_nsec = ts.tv_nsec, in coda_to_timespec64()
83 .tv_nsec = ts64.tv_nsec, in timespec64_to_coda()
153 vattr->va_atime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
155 vattr->va_mtime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
157 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()
62 result->i_ctime.tv_nsec = 0; in hpfs_mkdir()
63 result->i_mtime.tv_nsec = 0; in hpfs_mkdir()
64 result->i_atime.tv_nsec = 0; in hpfs_mkdir()
169 result->i_ctime.tv_nsec = 0; in hpfs_create()
170 result->i_mtime.tv_nsec = 0; in hpfs_create()
171 result->i_atime.tv_nsec = 0; in hpfs_create()
251 result->i_ctime.tv_nsec = 0; in hpfs_mknod()
252 result->i_mtime.tv_nsec = 0; in hpfs_mknod()
253 result->i_atime.tv_nsec = 0; in hpfs_mknod()
[all …]
/fs/proc/
Duptime.c24 idle.tv_nsec = rem; in uptime_proc_show()
27 (uptime.tv_nsec / (NSEC_PER_SEC / 100)), in uptime_proc_show()
29 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_proc_show()
/fs/xfs/
Dxfs_itable.c95 buf->bs_atime_nsec = inode->i_atime.tv_nsec; in xfs_bulkstat_one_int()
97 buf->bs_mtime_nsec = inode->i_mtime.tv_nsec; in xfs_bulkstat_one_int()
99 buf->bs_ctime_nsec = inode->i_ctime.tv_nsec; in xfs_bulkstat_one_int()
288 bs1->bs_atime.tv_nsec = bstat->bs_atime_nsec; in xfs_bulkstat_to_bstat()
289 bs1->bs_mtime.tv_nsec = bstat->bs_mtime_nsec; in xfs_bulkstat_to_bstat()
290 bs1->bs_ctime.tv_nsec = bstat->bs_ctime_nsec; in xfs_bulkstat_to_bstat()
/fs/erofs/
Dinode.c119 inode->i_ctime.tv_nsec = le32_to_cpu(die->i_ctime_nsec); in erofs_read_inode()
159 inode->i_ctime.tv_nsec = sbi->build_time_nsec; in erofs_read_inode()
175 inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec; in erofs_read_inode()
176 inode->i_atime.tv_nsec = inode->i_ctime.tv_nsec; in erofs_read_inode()
/fs/nfsd/
Dnfsxdr.c106 iap->ia_atime.tv_nsec = tmp1 * 1000; in decode_sattr()
112 iap->ia_mtime.tv_nsec = tmp1 * 1000; in decode_sattr()
175 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); in encode_fattr()
179 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); in encode_fattr()
181 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); in encode_fattr()
/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/cifs/
Dfscache.c134 auxdata.last_write_time_nsec = cifsi->vfs_inode.i_mtime.tv_nsec; in cifs_fscache_acquire_inode_cookie()
135 auxdata.last_change_time_nsec = cifsi->vfs_inode.i_ctime.tv_nsec; in cifs_fscache_acquire_inode_cookie()
173 auxdata.last_write_time_nsec = cifsi->vfs_inode.i_mtime.tv_nsec; in cifs_fscache_release_inode_cookie()
174 auxdata.last_change_time_nsec = cifsi->vfs_inode.i_ctime.tv_nsec; in cifs_fscache_release_inode_cookie()
Dcache.c133 auxdata.last_write_time_nsec = cifsi->vfs_inode.i_mtime.tv_nsec; in cifs_fscache_inode_check_aux()
134 auxdata.last_change_time_nsec = cifsi->vfs_inode.i_ctime.tv_nsec; in cifs_fscache_inode_check_aux()
/fs/nfs/
Dfscache-index.c88 auxdata.mtime_nsec = nfsi->vfs_inode.i_mtime.tv_nsec; in nfs_fscache_inode_check_aux()
90 auxdata.ctime_nsec = nfsi->vfs_inode.i_ctime.tv_nsec; in nfs_fscache_inode_check_aux()
/fs/9p/
Dvfs_inode_dotl.c559 p9attr.atime_nsec = iattr->ia_atime.tv_nsec; in v9fs_vfs_setattr_dotl()
561 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec; in v9fs_vfs_setattr_dotl()
608 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
610 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
612 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
627 inode->i_atime.tv_nsec = stat->st_atime_nsec; in v9fs_stat2inode_dotl()
631 inode->i_mtime.tv_nsec = stat->st_mtime_nsec; in v9fs_stat2inode_dotl()
635 inode->i_ctime.tv_nsec = stat->st_ctime_nsec; in v9fs_stat2inode_dotl()
/fs/pstore/
Dram.c145 (time64_t *)&time->tv_sec, &time->tv_nsec, &data_type, in ramoops_read_kmsg_hdr()
147 time->tv_nsec *= 1000; in ramoops_read_kmsg_hdr()
153 (time64_t *)&time->tv_sec, &time->tv_nsec, in ramoops_read_kmsg_hdr()
155 time->tv_nsec *= 1000; in ramoops_read_kmsg_hdr()
159 time->tv_nsec = 0; in ramoops_read_kmsg_hdr()
237 record->time.tv_nsec = 0; in ramoops_pstore_read()
342 record->time.tv_nsec / 1000, in ramoops_write_kmsg_hdr()
/fs/f2fs/
Dinode.c352 inode->i_atime.tv_nsec = le32_to_cpu(ri->i_atime_nsec); in do_read_inode()
353 inode->i_ctime.tv_nsec = le32_to_cpu(ri->i_ctime_nsec); in do_read_inode()
354 inode->i_mtime.tv_nsec = le32_to_cpu(ri->i_mtime_nsec); in do_read_inode()
438 fi->i_crtime.tv_nsec = le32_to_cpu(ri->i_crtime_nsec); in do_read_inode()
578 ri->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in f2fs_update_inode()
579 ri->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in f2fs_update_inode()
580 ri->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in f2fs_update_inode()
616 cpu_to_le32(F2FS_I(inode)->i_crtime.tv_nsec); in f2fs_update_inode()
/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/xfs/libxfs/
Dxfs_inode_buf.c223 inode->i_atime.tv_nsec = (int)be32_to_cpu(from->di_atime.t_nsec); in xfs_inode_from_disk()
225 inode->i_mtime.tv_nsec = (int)be32_to_cpu(from->di_mtime.t_nsec); in xfs_inode_from_disk()
227 inode->i_ctime.tv_nsec = (int)be32_to_cpu(from->di_ctime.t_nsec); in xfs_inode_from_disk()
272 to->di_atime.t_nsec = cpu_to_be32(inode->i_atime.tv_nsec); in xfs_inode_to_disk()
274 to->di_mtime.t_nsec = cpu_to_be32(inode->i_mtime.tv_nsec); in xfs_inode_to_disk()
276 to->di_ctime.t_nsec = cpu_to_be32(inode->i_ctime.tv_nsec); in xfs_inode_to_disk()
/fs/freevxfs/
Dvxfs_inode.c139 inode->i_atime.tv_nsec = 0; in dip2vip_cpy()
140 inode->i_ctime.tv_nsec = 0; in dip2vip_cpy()
141 inode->i_mtime.tv_nsec = 0; in dip2vip_cpy()
/fs/fat/
Dmisc.c226 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
229 ts->tv_nsec = 0; in fat_time_fat2unix()
266 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
/fs/efs/
Dinode.c107 inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; in efs_iget()
/fs/ocfs2/
Dinode.c308 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_populate_inode()
310 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_populate_inode()
312 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_populate_inode()
1318 fe->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in ocfs2_mark_inode_dirty()
1320 fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in ocfs2_mark_inode_dirty()
1322 fe->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in ocfs2_mark_inode_dirty()
1354 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_refresh_inode()
1356 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_refresh_inode()
1358 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_refresh_inode()
/fs/ceph/
Dinode.c667 inode->i_ctime.tv_sec, inode->i_ctime.tv_nsec, in ceph_fill_file_time()
668 ctime->tv_sec, ctime->tv_nsec); in ceph_fill_file_time()
676 inode->i_mtime.tv_sec, inode->i_mtime.tv_nsec, in ceph_fill_file_time()
677 mtime->tv_sec, mtime->tv_nsec, in ceph_fill_file_time()
688 inode->i_mtime.tv_nsec, in ceph_fill_file_time()
689 mtime->tv_sec, mtime->tv_nsec); in ceph_fill_file_time()
695 inode->i_atime.tv_nsec, in ceph_fill_file_time()
696 atime->tv_sec, atime->tv_nsec); in ceph_fill_file_time()
2078 inode->i_atime.tv_sec, inode->i_atime.tv_nsec, in __ceph_setattr()
2079 attr->ia_atime.tv_sec, attr->ia_atime.tv_nsec); in __ceph_setattr()
[all …]

12345