Home
last modified time | relevance | path

Searched refs:ctime (Results 1 – 25 of 90) sorted by relevance

1234

/linux/fs/
H A Dstat.c32 * fill_mg_cmtime - Fill in the mtime and ctime and flag ctime as QUERIED
37 * Given @inode, grab the ctime and mtime out if it and store the result
41 * NB: The QUERIED flag is tracked in the ctime, but we set it there even
56 stat->ctime.tv_sec = inode_get_ctime_sec(inode); in fill_mg_cmtime()
57 stat->ctime.tv_nsec = (u32)atomic_read(pcn); in fill_mg_cmtime()
58 if (!(stat->ctime.tv_nsec & I_CTIME_QUERIED)) in fill_mg_cmtime()
59 stat->ctime.tv_nsec = ((u32)atomic_fetch_or(I_CTIME_QUERIED, pcn)); in fill_mg_cmtime()
60 stat->ctime.tv_nsec &= ~I_CTIME_QUERIED; in fill_mg_cmtime()
61 trace_fill_mg_cmtime(inode, &stat->ctime, in fill_mg_cmtime()
[all...]
/linux/fs/omfs/
H A Dinode.c109 u64 ctime; in __omfs_write_inode() local
139 ctime = inode_get_ctime_sec(inode) * 1000LL + in __omfs_write_inode()
141 oi->i_ctime = cpu_to_be64(ctime); in __omfs_write_inode()
209 u64 ctime; in omfs_iget() local
232 ctime = be64_to_cpu(oi->i_ctime); in omfs_iget()
233 nsecs = do_div(ctime, 1000) * 1000L; in omfs_iget()
235 inode_set_atime(inode, ctime, nsecs); in omfs_iget()
236 inode_set_mtime(inode, ctime, nsecs); in omfs_iget()
237 inode_set_ctime(inode, ctime, nsecs); in omfs_iget()
/linux/tools/testing/selftests/cgroup/
H A Dtest_freezer.c1241 long ptime, ctime; in test_cgfreezer_time_parent() local
1278 ctime = cg_check_freezetime(child); in test_cgfreezer_time_parent()
1279 if (ptime <= ctime) { in test_cgfreezer_time_parent()
1280 debug("Expect ptime (%ld) > ctime (%ld)\n", ptime, ctime); in test_cgfreezer_time_parent()
1295 ctime = cg_check_freezetime(child); in test_cgfreezer_time_parent()
1298 if (ctime <= ptime) { in test_cgfreezer_time_parent()
1299 debug("Expect ctime (%ld) > ptime (%ld)\n", ctime, ptime); in test_cgfreezer_time_parent()
1324 long ptime, ctime; in test_cgfreezer_time_child() local
1348 ctime = cg_check_freezetime(child); in test_cgfreezer_time_child()
1355 if (ctime <= ptime) { in test_cgfreezer_time_child()
[all …]
/linux/tools/net/sunrpc/xdrgen/generators/
H A Dheader_top.py29 mtime=time.ctime(os.path.getmtime(filename)),
40 mtime=time.ctime(os.path.getmtime(filename)),
H A Dsource_top.py30 mtime=time.ctime(os.path.getmtime(filename)),
/linux/tools/testing/selftests/timers/
H A Dinconsistency-check.c67 start_str = ctime(&t);
102 ksft_print_msg("%s\n", ctime(&t)); in consistency_test()
H A Dleap-a-day.c258 printf("Setting time to %s", ctime(&tv.tv_sec)); in main()
291 printf("Scheduling leap second for %s", ctime(&next_leap)); in main()
294 printf("Setting timer for %ld - %s", next_leap, ctime(&next_leap)); in main()
/linux/fs/smb/client/
H A Dreparse.h87 struct timespec64 ctime = inode_get_ctime(inode); in reparse_inode_match() local
99 timespec64_equal(&ctime, &fattr->cf_ctime); in reparse_inode_match()
/linux/fs/nfsd/
H A Dnfsfh.c806 fhp->fh_pre_ctime = fhp->fh_post_attr.ctime; in fh_fill_pre_attrs()
951 * By using both ctime and the i_version counter we guarantee that as long as
968 chattr += (u64)stat->ctime.tv_sec << 30; in nfsd4_change_attribute()
969 chattr += stat->ctime.tv_nsec; in nfsd4_change_attribute()
972 chattr = time_to_chattr(&stat->ctime); in nfsd4_change_attribute()
/linux/fs/nilfs2/
H A Dsysfs.c565 time64_t ctime; in nilfs_segctor_last_seg_write_time_show()
568 ctime = nilfs->ns_ctime; in nilfs_segctor_last_seg_write_time_show()
571 return sysfs_emit(buf, "%ptTs\n", &ctime);
579 time64_t ctime; in nilfs_segctor_last_seg_write_time_secs_show()
582 ctime = nilfs->ns_ctime; in nilfs_segctor_last_seg_write_time_secs_show()
585 return sysfs_emit(buf, "%llu\n", ctime);
562 time64_t ctime; nilfs_segctor_last_seg_write_time_show() local
576 time64_t ctime; nilfs_segctor_last_seg_write_time_secs_show() local
H A Dcpfile.h24 time64_t ctime, bool minor);
H A Dsegbuf.h40 time64_t ctime; member
/linux/fs/nfs/
H A Dlocalio.c906 chattr += (u64)stat->ctime.tv_sec << 30; in nfs_local_call_write()
907 chattr += stat->ctime.tv_nsec; in nfs_local_call_write()
910 chattr = time_to_chattr(&stat->ctime); in nfs_local_call_write()
938 fattr->ctime = stat.ctime; in nfs_local_do_write()
943 fattr->change_attr = nfs_timespec_to_change_attr(&fattr->ctime); in nfs_local_do_write()
H A Dinode.c529 inode_set_ctime_to_ts(inode, fattr->ctime); in nfs_fhget()
634 * server's fine-grained ctime cached from an OPEN or SETATTR reply. The in nfs_set_timestamps_to_ts()
635 * server won't move ctime backward when the times are returned, so a in nfs_set_timestamps_to_ts()
636 * new stamp must land after the cached ctime. in nfs_set_timestamps_to_ts()
640 struct timespec64 ctime = inode_get_ctime(inode); in nfs_set_timestamps_to_ts()
643 if (timespec64_compare(&now, &ctime) <= 0) { in nfs_set_timestamps_to_ts()
644 now = ctime; in nfs_set_timestamps_to_ts()
652 * cached ctime to the server's so that the next delegated stamp lands in nfs_set_timestamps_to_ts()
658 struct timespec64 ctime = inode_get_ctime(inode); in nfs_update_atime()
661 timespec64_compare(&fattr->ctime, in nfs_update_mtime()
631 struct timespec64 ctime = inode_get_ctime(inode); nfs_set_timestamps_to_ts() local
[all...]
/linux/include/uapi/linux/raid/
H A Dmd_u.h80 unsigned int ctime; member
/linux/fs/xfs/
H A Dxfs_exchrange.c88 struct timespec64 ctime = inode_get_ctime(inode2); in xfs_exchrange_check_freshness() local
96 !timespec64_equal(&fxr->file2_ctime, &ctime) || in xfs_exchrange_check_freshness()
268 /* Update the mtime and ctime of both files. */ in xfs_exchrange_mappings()
894 /* Force writing of a distinct ctime if any writes happen. */ in xfs_ioc_start_commit()
896 kern_f->file2_ctime = kstat.ctime.tv_sec; in xfs_ioc_start_commit()
897 kern_f->file2_ctime_nsec = kstat.ctime.tv_nsec; in xfs_ioc_start_commit()
/linux/fs/jffs2/
H A Dfs.c118 ri->ctime = cpu_to_je32(I_SEC((ivalid & ATTR_CTIME)?iattr->ia_ctime:inode_get_ctime(inode))); in jffs2_do_setattr()
151 inode_set_ctime_to_ts(inode, ITIME(je32_to_cpu(ri->ctime))); in jffs2_do_setattr()
287 inode_set_ctime_to_ts(inode, ITIME(je32_to_cpu(latest_node.ctime))); in jffs2_iget()
479 ri->atime = ri->mtime = ri->ctime = cpu_to_je32(I_SEC(inode_get_mtime(inode))); in jffs2_new_inode()
/linux/fs/hostfs/
H A Dhostfs.h31 struct hostfs_timespec atime, mtime, ctime, btime; member
/linux/fs/overlayfs/
H A Dfile.c298 struct timespec64 ctime, uctime; in ovl_file_accessed() local
310 ctime = inode_get_ctime(inode); in ovl_file_accessed()
315 !timespec64_equal(&ctime, &uctime)) { in ovl_file_accessed()
/linux/tools/laptop/dslm/
H A Ddslm.c60 char *ts = ctime(&time); in myctime()
/linux/net/mac80211/
H A Drc80211_minstrel_ht.c1436 unsigned int ctime = 0; in minstrel_calc_retransmit() local
1455 ctime = (t_slot * cw) >> 1; in minstrel_calc_retransmit()
1457 ctime += (t_slot * cw) >> 1; in minstrel_calc_retransmit()
1469 tx_time = ctime + 2 * (overhead + tx_time_data); in minstrel_calc_retransmit()
1470 tx_time_rtscts = ctime + 2 * (overhead_rtscts + tx_time_data); in minstrel_calc_retransmit()
1475 ctime = (t_slot * cw) >> 1; in minstrel_calc_retransmit()
1479 tx_time += ctime + overhead + tx_time_data; in minstrel_calc_retransmit()
1480 tx_time_rtscts += ctime + overhead_rtscts + tx_time_data; in minstrel_calc_retransmit()
/linux/include/uapi/linux/
H A Dmsdos_fs.h177 __le16 ctime; /* Creation time */ member
H A Djffs2.h149 jint32_t ctime; /* Change time. */ member
/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c142 tmp.st_ctime = stat->ctime.tv_sec; in cp_oldabi_stat64()
143 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_oldabi_stat64()
/linux/samples/connector/
H A Ducon.c226 ctime(&tm), data->id.idx, data->id.val, data->seq, data->ack); in main()

1234