Home
last modified time | relevance | path

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

1234

/fs/
Dutimes.c35 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
36 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
61 if (times && times[0].tv_nsec == UTIME_NOW && in utimes_common()
62 times[1].tv_nsec == UTIME_NOW) in utimes_common()
67 if (times[0].tv_nsec == UTIME_OMIT) in utimes_common()
69 else if (times[0].tv_nsec != UTIME_NOW) { in utimes_common()
71 newattrs.ia_atime.tv_nsec = times[0].tv_nsec; in utimes_common()
75 if (times[1].tv_nsec == UTIME_OMIT) in utimes_common()
77 else if (times[1].tv_nsec != UTIME_NOW) { in utimes_common()
79 newattrs.ia_mtime.tv_nsec = times[1].tv_nsec; in utimes_common()
[all …]
Dselect.c52 slack = tv->tv_nsec / divfactor; in __estimate_accuracy()
253 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout()
260 to->tv_sec = to->tv_nsec = 0; in poll_select_set_timeout()
281 if (!end_time->tv_sec && !end_time->tv_nsec) in poll_select_copy_remaining()
287 rts.tv_sec = rts.tv_nsec = 0; in poll_select_copy_remaining()
291 rtv.tv_usec = rts.tv_nsec / NSEC_PER_USEC; in poll_select_copy_remaining()
383 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_select()
598 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
709 if (end_time && !end_time->tv_sec && !end_time->tv_nsec) { in do_poll()
845 end_time.tv_nsec = restart_block->poll.tv_nsec; in do_restart_poll()
[all …]
Dcompat.c88 tv[0].tv_nsec = 0; in compat_sys_utime()
89 tv[1].tv_nsec = 0; in compat_sys_utime()
103 if ((tv[0].tv_nsec == UTIME_OMIT || tv[0].tv_nsec == UTIME_NOW) in compat_sys_utimensat()
106 if ((tv[1].tv_nsec == UTIME_OMIT || tv[1].tv_nsec == UTIME_NOW) in compat_sys_utimensat()
110 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in compat_sys_utimensat()
122 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in compat_sys_futimesat()
124 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in compat_sys_futimesat()
126 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in compat_sys_futimesat()
127 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in compat_sys_futimesat()
129 tv[0].tv_nsec *= 1000; in compat_sys_futimesat()
[all …]
Dstat.c231 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat()
232 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat()
233 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat()
359 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat64()
361 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64()
363 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat64()
/fs/hostfs/
Dhostfs_user.c51 atime_out->tv_nsec = 0; in stat_file()
55 mtime_out->tv_nsec = 0; in stat_file()
59 ctime_out->tv_nsec = 0; in stat_file()
288 times[0].tv_usec = atime_ts.tv_nsec / 1000; in set_attr()
290 times[1].tv_usec = mtime_ts.tv_nsec / 1000; in set_attr()
294 times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000; in set_attr()
298 times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000; in set_attr()
/fs/udf/
Dudftime.c114 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
161 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
162 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
164 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
/fs/hpfs/
Dnamei.c50 result->i_ctime.tv_nsec = 0; in hpfs_mkdir()
51 result->i_mtime.tv_nsec = 0; in hpfs_mkdir()
52 result->i_atime.tv_nsec = 0; in hpfs_mkdir()
160 result->i_ctime.tv_nsec = 0; in hpfs_create()
161 result->i_mtime.tv_nsec = 0; in hpfs_create()
162 result->i_atime.tv_nsec = 0; in hpfs_create()
246 result->i_ctime.tv_nsec = 0; in hpfs_mknod()
247 result->i_mtime.tv_nsec = 0; in hpfs_mknod()
248 result->i_atime.tv_nsec = 0; in hpfs_mknod()
323 result->i_ctime.tv_nsec = 0; in hpfs_symlink()
[all …]
Ddir.c267 result->i_ctime.tv_nsec = 0; in hpfs_lookup()
269 result->i_mtime.tv_nsec = 0; in hpfs_lookup()
271 result->i_atime.tv_nsec = 0; in hpfs_lookup()
/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/nfsd/
Dnfsxdr.c128 iap->ia_atime.tv_nsec = tmp1 * 1000; in decode_sattr()
134 iap->ia_mtime.tv_nsec = tmp1 * 1000; in decode_sattr()
196 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); in encode_fattr()
199 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); in encode_fattr()
201 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); in encode_fattr()
/fs/xfs/linux-2.6/
Dxfs_vnode.h71 bs_atime->tv_nsec = vp->i_atime.tv_nsec; in vn_atime_to_bstime()
Dxfs_iops.c70 ip->i_d.di_atime.t_nsec = (__int32_t)inode->i_atime.tv_nsec; in xfs_synchronize_atime()
109 ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; in xfs_ichgtime()
116 ip->i_d.di_ctime.t_nsec = (__int32_t)tv.tv_nsec; in xfs_ichgtime()
561 stat->mtime.tv_nsec = ip->i_d.di_mtime.t_nsec; in xfs_vn_getattr()
563 stat->ctime.tv_nsec = ip->i_d.di_ctime.t_nsec; in xfs_vn_getattr()
881 inode->i_atime.tv_nsec = ip->i_d.di_atime.t_nsec; in xfs_setup_inode()
883 inode->i_mtime.tv_nsec = ip->i_d.di_mtime.t_nsec; in xfs_setup_inode()
885 inode->i_ctime.tv_nsec = ip->i_d.di_ctime.t_nsec; in xfs_setup_inode()
/fs/proc/
Duptime.c34 (uptime.tv_nsec / (NSEC_PER_SEC / 100)), in uptime_read_proc()
36 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_read_proc()
/fs/coda/
Dcoda_linux.c140 vattr->va_atime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr()
142 vattr->va_mtime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr()
144 vattr->va_ctime.tv_nsec = (time_t) -1; in coda_iattr_to_vattr()
/fs/fat/
Dmisc.c203 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
206 ts->tv_nsec = 0; in fat_time_fat2unix()
267 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
/fs/freevxfs/
Dvxfs_inode.c236 ip->i_atime.tv_nsec = 0; in vxfs_iinit()
237 ip->i_ctime.tv_nsec = 0; in vxfs_iinit()
238 ip->i_mtime.tv_nsec = 0; in vxfs_iinit()
/fs/ocfs2/
Dinode.c266 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_populate_inode()
268 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_populate_inode()
270 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_populate_inode()
1213 fe->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); in ocfs2_mark_inode_dirty()
1215 fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); in ocfs2_mark_inode_dirty()
1217 fe->i_mtime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); in ocfs2_mark_inode_dirty()
1254 inode->i_atime.tv_nsec = le32_to_cpu(fe->i_atime_nsec); in ocfs2_refresh_inode()
1256 inode->i_mtime.tv_nsec = le32_to_cpu(fe->i_mtime_nsec); in ocfs2_refresh_inode()
1258 inode->i_ctime.tv_nsec = le32_to_cpu(fe->i_ctime_nsec); in ocfs2_refresh_inode()
/fs/ufs/
Dinode.c647 inode->i_mtime.tv_nsec = 0; in ufs1_read_inode()
648 inode->i_atime.tv_nsec = 0; in ufs1_read_inode()
649 inode->i_ctime.tv_nsec = 0; in ufs1_read_inode()
695 inode->i_atime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_atimensec); in ufs2_read_inode()
696 inode->i_ctime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_ctimensec); in ufs2_read_inode()
697 inode->i_mtime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_mtimensec); in ufs2_read_inode()
839 ufs_inode->ui_atimensec = cpu_to_fs32(sb, inode->i_atime.tv_nsec); in ufs2_update_inode()
841 ufs_inode->ui_ctimensec = cpu_to_fs32(sb, inode->i_ctime.tv_nsec); in ufs2_update_inode()
843 ufs_inode->ui_mtimensec = cpu_to_fs32(sb, inode->i_mtime.tv_nsec); in ufs2_update_inode()
/fs/gfs2/
Dinode.c279 atime.tv_nsec = be32_to_cpu(str->di_atime_nsec); in gfs2_dinode_in()
283 ip->i_inode.i_mtime.tv_nsec = be32_to_cpu(str->di_mtime_nsec); in gfs2_dinode_in()
285 ip->i_inode.i_ctime.tv_nsec = be32_to_cpu(str->di_ctime_nsec); in gfs2_dinode_in()
807 di->di_atime_nsec = cpu_to_be32(tv.tv_nsec); in init_dinode()
808 di->di_mtime_nsec = cpu_to_be32(tv.tv_nsec); in init_dinode()
809 di->di_ctime_nsec = cpu_to_be32(tv.tv_nsec); in init_dinode()
1274 str->di_atime_nsec = cpu_to_be32(ip->i_inode.i_atime.tv_nsec); in gfs2_dinode_out()
1275 str->di_mtime_nsec = cpu_to_be32(ip->i_inode.i_mtime.tv_nsec); in gfs2_dinode_out()
1276 str->di_ctime_nsec = cpu_to_be32(ip->i_inode.i_ctime.tv_nsec); in gfs2_dinode_out()
/fs/minix/
Dinode.c430 inode->i_mtime.tv_nsec = 0; in V1_minix_iget()
431 inode->i_atime.tv_nsec = 0; in V1_minix_iget()
432 inode->i_ctime.tv_nsec = 0; in V1_minix_iget()
465 inode->i_mtime.tv_nsec = 0; in V2_minix_iget()
466 inode->i_atime.tv_nsec = 0; in V2_minix_iget()
467 inode->i_ctime.tv_nsec = 0; in V2_minix_iget()
/fs/efs/
Dinode.c107 inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0; in efs_iget()
/fs/adfs/
Dinode.c213 tv->tv_nsec = 0; in adfs_adfs2unix_time()
221 tv->tv_sec = tv->tv_nsec = 0; in adfs_adfs2unix_time()
226 tv->tv_nsec = 0; in adfs_adfs2unix_time()
/fs/omfs/
Dinode.c130 ((inode->i_ctime.tv_nsec + 999)/1000); in omfs_write_inode()
223 inode->i_atime.tv_nsec = nsecs; in omfs_iget()
224 inode->i_mtime.tv_nsec = nsecs; in omfs_iget()
225 inode->i_ctime.tv_nsec = nsecs; in omfs_iget()
/fs/sysv/
Dinode.c212 inode->i_ctime.tv_nsec = 0; in sysv_iget()
213 inode->i_atime.tv_nsec = 0; in sysv_iget()
214 inode->i_mtime.tv_nsec = 0; in sysv_iget()
/fs/xfs/
Dxfs_itable.c88 buf->bs_mtime.tv_nsec = dic->di_mtime.t_nsec; in xfs_bulkstat_one_iget()
90 buf->bs_ctime.tv_nsec = dic->di_ctime.t_nsec; in xfs_bulkstat_one_iget()
156 buf->bs_atime.tv_nsec = be32_to_cpu(dic->di_atime.t_nsec); in xfs_bulkstat_one_dinode()
158 buf->bs_mtime.tv_nsec = be32_to_cpu(dic->di_mtime.t_nsec); in xfs_bulkstat_one_dinode()
160 buf->bs_ctime.tv_nsec = be32_to_cpu(dic->di_ctime.t_nsec); in xfs_bulkstat_one_dinode()

1234