Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 37) sorted by relevance

12

/fs/ntfs/
Dtime.h34 static inline sle64 utc2ntfs(const struct timespec64 ts) in utc2ntfs() argument
40 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs()
52 struct timespec64 ts; in get_current_ntfs_time() local
54 ktime_get_coarse_real_ts64(&ts); in get_current_ntfs_time()
55 return utc2ntfs(ts); in get_current_ntfs_time()
76 struct timespec64 ts; in ntfs2utc() local
84 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc()
85 ts.tv_sec = t; in ntfs2utc()
86 return ts; in ntfs2utc()
/fs/fat/
Dmisc.c198 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_fat2unix() argument
225 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix()
226 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
228 ts->tv_sec = second; in fat_time_fat2unix()
229 ts->tv_nsec = 0; in fat_time_fat2unix()
234 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_unix2fat() argument
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()
270 static inline struct timespec64 fat_timespec64_trunc_2secs(struct timespec64 ts) in fat_timespec64_trunc_2secs() argument
272 return (struct timespec64){ ts.tv_sec & ~1ULL, 0 }; in fat_timespec64_trunc_2secs()
[all …]
Dnamei_msdos.c229 struct timespec64 *ts, struct fat_slot_info *sinfo) in msdos_add_entry() argument
241 fat_time_unix2fat(sbi, ts, &time, &date, NULL); in msdos_add_entry()
254 fat_truncate_time(dir, ts, S_CTIME|S_MTIME); in msdos_add_entry()
270 struct timespec64 ts; in msdos_create() local
288 ts = current_time(dir); in msdos_create()
289 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); in msdos_create()
298 fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); in msdos_create()
348 struct timespec64 ts; in msdos_mkdir() local
365 ts = current_time(dir); in msdos_mkdir()
366 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir()
[all …]
Dnamei_vfat.c581 struct timespec64 *ts, in vfat_build_slots() argument
645 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in vfat_build_slots()
657 int is_dir, int cluster, struct timespec64 *ts, in vfat_add_entry() argument
672 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
682 fat_truncate_time(dir, ts, S_CTIME|S_MTIME); in vfat_add_entry()
765 struct timespec64 ts; in vfat_create() local
770 ts = current_time(dir); in vfat_create()
771 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create()
783 fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); in vfat_create()
854 struct timespec64 ts; in vfat_mkdir() local
[all …]
Dfat.h335 extern int fat_alloc_new_dir(struct inode *dir, struct timespec64 *ts);
443 extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts,
445 extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts,
Dinode.c1613 struct timespec64 ts; in fat_fill_super() local
1707 fat_time_fat2unix(sbi, &ts, 0, cpu_to_le16(FAT_DATE_MIN), 0); in fat_fill_super()
1708 sb->s_time_min = ts.tv_sec; in fat_fill_super()
1710 fat_time_fat2unix(sbi, &ts, cpu_to_le16(FAT_TIME_MAX), in fat_fill_super()
1712 sb->s_time_max = ts.tv_sec; in fat_fill_super()
/fs/
Dselect.c275 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() local
277 if (!timespec64_valid(&ts)) in poll_select_set_timeout()
285 *to = timespec64_add_safe(*to, ts); in poll_select_set_timeout()
733 struct timespec64 ts, end_time, *to = NULL; in do_pselect() local
739 if (get_timespec64(&ts, tsp)) in do_pselect()
743 if (get_old_timespec32(&ts, tsp)) in do_pselect()
751 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
1085 struct timespec64 ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local
1089 if (get_timespec64(&ts, tsp)) in SYSCALL_DEFINE5()
1093 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
[all …]
Daio.c2032 struct timespec64 *ts) in do_io_getevents() argument
2034 ktime_t until = ts ? timespec64_to_ktime(*ts) : KTIME_MAX; in do_io_getevents()
2067 struct timespec64 ts; in SYSCALL_DEFINE5() local
2070 if (timeout && unlikely(get_timespec64(&ts, timeout))) in SYSCALL_DEFINE5()
2073 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE5()
2095 struct timespec64 ts; in SYSCALL_DEFINE6() local
2099 if (timeout && unlikely(get_timespec64(&ts, timeout))) in SYSCALL_DEFINE6()
2109 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE6()
2130 struct timespec64 ts; in SYSCALL_DEFINE6() local
2134 if (timeout && unlikely(get_old_timespec32(&ts, timeout))) in SYSCALL_DEFINE6()
[all …]
/fs/udf/
Dudftime.c73 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 ts) in udf_time_to_disk_stamp() argument
83 seconds = ts.tv_sec + offset * 60; in udf_time_to_disk_stamp()
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()
Dsuper.c858 struct timestamp *ts; in udf_load_pvoldesc() local
879 ts = &pvoldesc->recordingDateAndTime; in udf_load_pvoldesc()
881 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc()
882 ts->minute, le16_to_cpu(ts->typeAndTimezone)); in udf_load_pvoldesc()
2001 struct timespec64 ts; in udf_finalize_lvid() local
2003 ktime_get_real_ts64(&ts); in udf_finalize_lvid()
2004 udf_time_to_disk_stamp(&lvid->recordingDateAndTime, ts); in udf_finalize_lvid()
2269 struct timestamp ts; in udf_fill_super() local
2270 udf_time_to_disk_stamp(&ts, sbi->s_record_time); in udf_fill_super()
2273 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
[all …]
/fs/coda/
Dcoda_linux.c69 static struct timespec64 coda_to_timespec64(struct coda_timespec ts) in coda_to_timespec64() argument
72 .tv_sec = ts.tv_sec, in coda_to_timespec64()
73 .tv_nsec = ts.tv_nsec, in coda_to_timespec64()
81 struct coda_timespec ts = { in timespec64_to_coda() local
86 return ts; in timespec64_to_coda()
/fs/cifs/
Dnetmisc.c907 struct timespec64 ts; in cifs_NTtimeToUnix() local
921 ts.tv_nsec = (time64_t)(do_div(abs_t, 10000000) * 100); in cifs_NTtimeToUnix()
922 ts.tv_nsec = -ts.tv_nsec; in cifs_NTtimeToUnix()
923 ts.tv_sec = -abs_t; in cifs_NTtimeToUnix()
926 ts.tv_nsec = (time64_t)do_div(abs_t, 10000000) * 100; in cifs_NTtimeToUnix()
927 ts.tv_sec = abs_t; in cifs_NTtimeToUnix()
930 return ts; in cifs_NTtimeToUnix()
947 struct timespec64 ts; in cnvrtDosUnixTm() local
992 ts.tv_sec = sec + offset; in cnvrtDosUnixTm()
996 ts.tv_nsec = 0; in cnvrtDosUnixTm()
[all …]
Dcifsfs.c156 struct timespec64 ts; in cifs_read_super() local
185 ts = cnvrtDosUnixTm(cpu_to_le16(SMB_DATE_MIN), 0, 0); in cifs_read_super()
186 sb->s_time_min = ts.tv_sec; in cifs_read_super()
187 ts = cnvrtDosUnixTm(cpu_to_le16(SMB_DATE_MAX), in cifs_read_super()
189 sb->s_time_max = ts.tv_sec; in cifs_read_super()
196 ts = cifs_NTtimeToUnix(0); in cifs_read_super()
197 sb->s_time_min = ts.tv_sec; in cifs_read_super()
198 ts = cifs_NTtimeToUnix(cpu_to_le64(S64_MAX)); in cifs_read_super()
199 sb->s_time_max = ts.tv_sec; in cifs_read_super()
Ddfs_cache.c105 struct timespec64 ts; in cache_entry_expired() local
107 ktime_get_coarse_real_ts64(&ts); in cache_entry_expired()
108 return timespec64_compare(&ts, &ce->ce_etime) >= 0; in cache_entry_expired()
338 struct timespec64 ts = { in get_expire_time() local
345 return timespec64_add(now, ts); in get_expire_time()
Dcifsencrypt.c467 struct timespec64 ts; in find_timestamp() local
492 ktime_get_real_ts64(&ts); in find_timestamp()
493 return cpu_to_le64(cifs_UnixTimeToNT(ts)); in find_timestamp()
/fs/nfs/
Dnfs2xdr.c342 struct timespec ts; in encode_sattr() local
365 ts = timespec64_to_timespec(attr->ia_atime); in encode_sattr()
366 p = xdr_encode_time(p, &ts); in encode_sattr()
368 ts = timespec64_to_timespec(attr->ia_atime); in encode_sattr()
369 p = xdr_encode_current_server_time(p, &ts); in encode_sattr()
373 ts = timespec64_to_timespec(attr->ia_mtime); in encode_sattr()
374 xdr_encode_time(p, &ts); in encode_sattr()
376 ts = timespec64_to_timespec(attr->ia_mtime); in encode_sattr()
377 xdr_encode_current_server_time(p, &ts); in encode_sattr()
Dinode.c1354 struct timespec ts; in nfs_wcc_update_inode() local
1364 ts = timespec64_to_timespec(inode->i_ctime); in nfs_wcc_update_inode()
1367 && timespec_equal(&ts, &fattr->pre_ctime)) { in nfs_wcc_update_inode()
1371 ts = timespec64_to_timespec(inode->i_mtime); in nfs_wcc_update_inode()
1374 && timespec_equal(&ts, &fattr->pre_mtime)) { in nfs_wcc_update_inode()
1401 struct timespec ts; in nfs_check_inode_attributes() local
1428 ts = timespec64_to_timespec(inode->i_mtime); in nfs_check_inode_attributes()
1429 if ((fattr->valid & NFS_ATTR_FATTR_MTIME) && !timespec_equal(&ts, &fattr->mtime)) in nfs_check_inode_attributes()
1432 ts = timespec64_to_timespec(inode->i_ctime); in nfs_check_inode_attributes()
1433 if ((fattr->valid & NFS_ATTR_FATTR_CTIME) && !timespec_equal(&ts, &fattr->ctime)) in nfs_check_inode_attributes()
[all …]
Dinternal.h716 u64 nfs_timespec_to_change_attr(const struct timespec *ts) in nfs_timespec_to_change_attr() argument
718 return ((u64)ts->tv_sec << 30) + ts->tv_nsec; in nfs_timespec_to_change_attr()
Dnfs3xdr.c536 struct timespec ts; in encode_sattr3() local
586 struct timespec ts; in encode_sattr3() local
588 ts = timespec64_to_timespec(attr->ia_atime); in encode_sattr3()
589 p = xdr_encode_nfstime3(p, &ts); in encode_sattr3()
597 ts = timespec64_to_timespec(attr->ia_mtime); in encode_sattr3()
598 xdr_encode_nfstime3(p, &ts); in encode_sattr3()
/fs/ufs/
Dialloc.c180 struct timespec64 ts; in ufs_new_inode() local
328 ktime_get_real_ts64(&ts); in ufs_new_inode()
329 ufs2_inode->ui_birthtime = cpu_to_fs64(sb, ts.tv_sec); in ufs_new_inode()
330 ufs2_inode->ui_birthnsec = cpu_to_fs32(sb, ts.tv_nsec); in ufs_new_inode()
/fs/ubifs/
Dsb.c88 struct timespec64 ts; in create_default_filesystem() local
294 ktime_get_real_ts64(&ts); in create_default_filesystem()
295 ts = timespec64_trunc(ts, DEFAULT_TIME_GRAN); in create_default_filesystem()
296 tmp_le64 = cpu_to_le64(ts.tv_sec); in create_default_filesystem()
300 tmp_le32 = cpu_to_le32(ts.tv_nsec); in create_default_filesystem()
/fs/nfsd/
Dnfs3xdr.c170 struct timespec ts; in encode_fattr3() local
186 ts = timespec64_to_timespec(stat->atime); in encode_fattr3()
187 p = encode_time3(p, &ts); in encode_fattr3()
188 ts = timespec64_to_timespec(stat->mtime); in encode_fattr3()
189 p = encode_time3(p, &ts); in encode_fattr3()
190 ts = timespec64_to_timespec(stat->ctime); in encode_fattr3()
191 p = encode_time3(p, &ts); in encode_fattr3()
/fs/jbd2/
Dtransaction.c126 unsigned long ts) in update_t_max_wait() argument
130 time_after(transaction->t_start, ts)) { in update_t_max_wait()
131 ts = jbd2_time_diff(ts, transaction->t_start); in update_t_max_wait()
133 if (ts > transaction->t_max_wait) in update_t_max_wait()
134 transaction->t_max_wait = ts; in update_t_max_wait()
304 unsigned long ts = jiffies; in start_this_handle() local
405 update_t_max_wait(transaction, ts); in start_this_handle()
/fs/afs/
Dyfsclient.c118 struct timespec64 ts; in yfs_time_to_linux() local
128 ts.tv_nsec = (time64_t)(do_div(abs_t, 10000000) * 100); in yfs_time_to_linux()
129 ts.tv_nsec = -ts.tv_nsec; in yfs_time_to_linux()
130 ts.tv_sec = -abs_t; in yfs_time_to_linux()
133 ts.tv_nsec = (time64_t)do_div(abs_t, 10000000) * 100; in yfs_time_to_linux()
134 ts.tv_sec = abs_t; in yfs_time_to_linux()
137 return ts; in yfs_time_to_linux()
/fs/ceph/
Dmds_client.c1219 struct ceph_mds_session *ts; in __open_export_target_sessions() local
1230 ts = __open_export_target_session(mdsc, mi->export_targets[i]); in __open_export_target_sessions()
1231 if (!IS_ERR(ts)) in __open_export_target_sessions()
1232 ceph_put_mds_session(ts); in __open_export_target_sessions()
2074 struct timespec64 ts; in ceph_mdsc_create_request() local
2093 ktime_get_coarse_real_ts64(&ts); in ceph_mdsc_create_request()
2094 req->r_stamp = timespec64_trunc(ts, mdsc->fsc->sb->s_time_gran); in ceph_mdsc_create_request()
2387 struct ceph_timespec ts; in create_request_message() local
2388 ceph_encode_timespec64(&ts, &req->r_stamp); in create_request_message()
2389 ceph_encode_copy(&p, &ts, sizeof(ts)); in create_request_message()
[all …]

12