/kernel/linux/linux-6.6/init/ |
H A D | initramfs.c | 125 static void __init do_utime(char *filename, time64_t mtime) in do_utime() argument 127 struct timespec64 t[2] = { { .tv_sec = mtime }, { .tv_sec = mtime } }; in do_utime() 131 static void __init do_utime_path(const struct path *path, time64_t mtime) in do_utime_path() argument 133 struct timespec64 t[2] = { { .tv_sec = mtime }, { .tv_sec = mtime } }; in do_utime_path() 140 time64_t mtime; member 144 static void __init dir_add(const char *name, time64_t mtime) in dir_add() argument 154 de->mtime = mtime; in dir_add() 168 do_utime(char *filename, time64_t mtime) do_utime() argument 169 do_utime_path(const struct path *path, time64_t mtime) do_utime_path() argument 170 dir_add(const char *name, time64_t mtime) dir_add() argument 174 static __initdata time64_t mtime; global() variable [all...] |
/kernel/linux/linux-5.10/fs/squashfs/ |
H A D | squashfs_fs.h | 274 __le32 mtime; member 283 __le32 mtime; member 293 __le32 mtime; member 304 __le32 mtime; member 315 __le32 mtime; member 327 __le32 mtime; member 339 __le32 mtime; member 353 __le32 mtime; member 370 __le32 mtime; member 384 __le32 mtime; member [all...] |
/kernel/linux/linux-6.6/fs/squashfs/ |
H A D | squashfs_fs.h | 274 __le32 mtime; member 283 __le32 mtime; member 293 __le32 mtime; member 304 __le32 mtime; member 315 __le32 mtime; member 327 __le32 mtime; member 339 __le32 mtime; member 353 __le32 mtime; member 370 __le32 mtime; member 384 __le32 mtime; member [all...] |
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | gc.c | 337 unsigned long long mtime = 0; in get_cb_cost() local 345 mtime += get_seg_entry(sbi, start + i)->mtime; in get_cb_cost() 348 mtime = div_u64(mtime, usable_segs_per_sec); in get_cb_cost() 354 if (mtime < sit_i->min_mtime) in get_cb_cost() 355 sit_i->min_mtime = mtime; in get_cb_cost() 356 if (mtime > sit_i->max_mtime) in get_cb_cost() 357 sit_i->max_mtime = mtime; in get_cb_cost() 359 age = 100 - div64_u64(100 * (mtime in get_cb_cost() 420 __lookup_victim_entry(struct f2fs_sb_info *sbi, unsigned long long mtime) __lookup_victim_entry() argument 438 __create_victim_entry(struct f2fs_sb_info *sbi, unsigned long long mtime, unsigned int segno) __create_victim_entry() argument 455 __insert_victim_entry(struct f2fs_sb_info *sbi, unsigned long long mtime, unsigned int segno) __insert_victim_entry() argument 490 unsigned long long mtime = 0; add_victim_entry() local [all...] |
/kernel/linux/linux-5.10/arch/um/drivers/ |
H A D | cow_user.c | 27 time32_t mtime; member 46 time32_t mtime; member 78 * definition, leading on 64-bit systems to 4 bytes of padding after mtime, to 89 __u32 mtime; member 101 __s64 mtime; member 235 cow_printf("write_cow_header - backing file '%s' mtime " in write_cow_header() 249 header->mtime = htobe32(modtime); in write_cow_header() 317 *mtime_out = header->v1.mtime; in read_cow_header() 330 *mtime_out = be32toh(header->v2.mtime); in read_cow_header() 344 *mtime_out = be32toh(header->v3.mtime); in read_cow_header() [all...] |
H A D | ubd_kern.c | 567 time64_t mtime; in ubd_file_size() local 583 &mtime, &size, §or_size, &align, &bitmap_offset); in ubd_file_size() 606 static int backing_file_mismatch(char *file, __u64 size, time64_t mtime) in backing_file_mismatch() argument 633 if (modtime != mtime) { in backing_file_mismatch() 634 printk(KERN_ERR "mtime mismatch (%lld vs %lld) of COW header vs " in backing_file_mismatch() 635 "backing file\n", mtime, modtime); in backing_file_mismatch() 677 time64_t mtime; in open_ubd_file() local 711 err = read_cow_header(file_reader, &fd, &version, &backing_file, &mtime, in open_ubd_file() 726 mtime)) { in open_ubd_file() 737 err = backing_file_mismatch(*backing_file_out, size, mtime); in open_ubd_file() [all...] |
/kernel/linux/linux-6.6/arch/um/drivers/ |
H A D | cow_user.c | 27 time32_t mtime; member 46 time32_t mtime; member 78 * definition, leading on 64-bit systems to 4 bytes of padding after mtime, to 89 __u32 mtime; member 101 __s64 mtime; member 235 cow_printf("write_cow_header - backing file '%s' mtime " in write_cow_header() 249 header->mtime = htobe32(modtime); in write_cow_header() 317 *mtime_out = header->v1.mtime; in read_cow_header() 330 *mtime_out = be32toh(header->v2.mtime); in read_cow_header() 344 *mtime_out = be32toh(header->v3.mtime); in read_cow_header() [all...] |
H A D | ubd_kern.c | 519 time64_t mtime; in ubd_file_size() local 535 &mtime, &size, §or_size, &align, &bitmap_offset); in ubd_file_size() 558 static int backing_file_mismatch(char *file, __u64 size, time64_t mtime) in backing_file_mismatch() argument 585 if (modtime != mtime) { in backing_file_mismatch() 586 printk(KERN_ERR "mtime mismatch (%lld vs %lld) of COW header vs " in backing_file_mismatch() 587 "backing file\n", mtime, modtime); in backing_file_mismatch() 629 time64_t mtime; in open_ubd_file() local 663 err = read_cow_header(file_reader, &fd, &version, &backing_file, &mtime, in open_ubd_file() 678 mtime)) { in open_ubd_file() 689 err = backing_file_mismatch(*backing_file_out, size, mtime); in open_ubd_file() [all...] |
/kernel/linux/linux-5.10/init/ |
H A D | initramfs.c | 106 static long __init do_utime(char *filename, time64_t mtime) in do_utime() argument 110 t[0].tv_sec = mtime; in do_utime() 112 t[1].tv_sec = mtime; in do_utime() 121 time64_t mtime; member 124 static void __init dir_add(const char *name, time64_t mtime) in dir_add() argument 131 de->mtime = mtime; in dir_add() 140 do_utime(de->name, de->mtime); in dir_utime() 146 static __initdata time64_t mtime; variable 173 mtime in parse_header() [all...] |
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | gc.c | 310 unsigned long long mtime = 0; in get_cb_cost() local 318 mtime += get_seg_entry(sbi, start + i)->mtime; in get_cb_cost() 321 mtime = div_u64(mtime, usable_segs_per_sec); in get_cb_cost() 327 if (mtime < sit_i->min_mtime) in get_cb_cost() 328 sit_i->min_mtime = mtime; in get_cb_cost() 329 if (mtime > sit_i->max_mtime) in get_cb_cost() 330 sit_i->max_mtime = mtime; in get_cb_cost() 332 age = 100 - div64_u64(100 * (mtime in get_cb_cost() 366 attach_victim_entry(struct f2fs_sb_info *sbi, unsigned long long mtime, unsigned int segno, struct rb_node *parent, struct rb_node **p, bool left_most) attach_victim_entry() argument 389 insert_victim_entry(struct f2fs_sb_info *sbi, unsigned long long mtime, unsigned int segno) insert_victim_entry() argument 407 unsigned long long mtime = 0; add_victim_entry() local [all...] |
H A D | gc.h | 59 unsigned long long mtime; /* mtime of section */ member 67 unsigned long long mtime; /* mtime of section */ member
|
/kernel/liteos_m/testsuites/unittest/posix/src/time/ |
H A D | time_func_test_01.c | 489 time_t mtime = 0; variable 492 mtime = LONG_MAX; 493 ftime = strftime(buffer, 80, "%y-%m-%d %H:%M:%S", localtime(&mtime)); 498 mtime = LONG_MIN; 499 ftime = strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", localtime(&mtime)); 504 mtime = 18880; 505 ftime = strftime(buffer, 80, "%F %T", localtime(&mtime)); 510 mtime = 18880; 511 ftime = strftime(buffer, 80, "%D %w %H:%M:%S", localtime(&mtime)); 526 time_t mtime variable 555 time_t mtime = 18880; global() variable [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | fscache.h | 53 struct timespec64 mtime = inode_get_mtime(inode); in cifs_fscache_fill_coherency() local 56 cd->last_write_time_sec = cpu_to_le64(mtime.tv_sec); in cifs_fscache_fill_coherency() 57 cd->last_write_time_nsec = cpu_to_le32(mtime.tv_nsec); in cifs_fscache_fill_coherency()
|
/kernel/linux/linux-5.10/fs/hostfs/ |
H A D | hostfs_user.c | 33 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs() 34 p->mtime.tv_nsec = 0; in stat64_to_hostfs() 246 times[1].tv_sec = st.mtime.tv_sec; in set_attr() 247 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr() 270 attrs->ia_mtime = st.mtime; in set_attr()
|
/kernel/linux/linux-6.6/fs/hostfs/ |
H A D | hostfs_user.c | 33 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs() 34 p->mtime.tv_nsec = 0; in stat64_to_hostfs() 247 times[1].tv_sec = st.mtime.tv_sec; in set_attr() 248 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr() 271 attrs->ia_mtime = st.mtime; in set_attr()
|
/kernel/linux/linux-5.10/fs/ |
H A D | stat.c | 47 stat->mtime = inode->i_mtime; in generic_fillattr() 257 tmp.st_mtime = stat->mtime.tv_sec; in cp_old_stat() 340 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat() 344 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat() 483 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat64() 484 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64() 565 tmp.stx_mtime.tv_sec = stat->mtime.tv_sec; in cp_statx() 566 tmp.stx_mtime.tv_nsec = stat->mtime.tv_nsec; in cp_statx() 640 tmp.st_mtime = stat->mtime.tv_sec; in cp_compat_stat() 641 tmp.st_mtime_nsec = stat->mtime in cp_compat_stat() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | stat.c | 61 stat->mtime = inode->i_mtime; in generic_fillattr() 343 tmp.st_mtime = stat->mtime.tv_sec; in cp_old_stat() 420 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat() 424 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat() 563 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat64() 564 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64() 647 tmp.stx_mtime.tv_sec = stat->mtime.tv_sec; in cp_statx() 648 tmp.stx_mtime.tv_nsec = stat->mtime.tv_nsec; in cp_statx() 736 tmp.st_mtime = stat->mtime.tv_sec; in cp_compat_stat() 737 tmp.st_mtime_nsec = stat->mtime in cp_compat_stat() [all...] |
/kernel/linux/linux-5.10/fs/hfs/ |
H A D | catalog.c | 38 __be32 mtime = hfs_mtime(); in hfs_cat_build_record() local 44 rec->dir.CrDat = mtime; in hfs_cat_build_record() 45 rec->dir.MdDat = mtime; in hfs_cat_build_record() 56 rec->file.CrDat = mtime; in hfs_cat_build_record() 57 rec->file.MdDat = mtime; in hfs_cat_build_record()
|
/kernel/linux/linux-6.6/fs/hfs/ |
H A D | catalog.c | 38 __be32 mtime = hfs_mtime(); in hfs_cat_build_record() local 44 rec->dir.CrDat = mtime; in hfs_cat_build_record() 45 rec->dir.MdDat = mtime; in hfs_cat_build_record() 56 rec->file.CrDat = mtime; in hfs_cat_build_record() 57 rec->file.MdDat = mtime; in hfs_cat_build_record()
|
/kernel/liteos_a/fs/jffs2/src/ |
H A D | vfs_jffs2.c | 358 ri.atime = ri.ctime = ri.mtime = cpu_to_je32(Jffs2CurSec()); in VfsJffs2WritePage() 374 node->i_mtime = node->i_ctime = je32_to_cpu(ri.mtime); in VfsJffs2WritePage() 379 node->i_mtime = node->i_ctime = je32_to_cpu(ri.mtime); in VfsJffs2WritePage() 426 ri.atime = ri.ctime = ri.mtime = cpu_to_je32(Jffs2CurSec()); in VfsJffs2Write() 444 node->i_mtime = node->i_ctime = je32_to_cpu(ri.mtime); in VfsJffs2Write() 458 node->i_mtime = node->i_ctime = je32_to_cpu(ri.mtime); in VfsJffs2Write() 471 node->i_mtime = node->i_ctime = je32_to_cpu(ri.mtime); in VfsJffs2Write()
|
/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
H A D | protocol.h | 202 __le64 mtime; member 343 __le64 mtime; member 371 __le64 mtime; member
|
/kernel/linux/linux-6.6/fs/hmdfs/comm/ |
H A D | protocol.h | 202 __le64 mtime; member 343 __le64 mtime; member 371 __le64 mtime; member
|
/kernel/linux/linux-6.6/include/linux/ceph/ |
H A D | ceph_fs.h | 416 struct ceph_timespec mtime; member 475 struct ceph_timespec mtime; member 584 struct ceph_timespec ctime, mtime, atime; member 796 struct ceph_timespec mtime, atime, ctime; member 854 struct ceph_timespec mtime, atime; member
|
/kernel/linux/linux-5.10/net/ceph/ |
H A D | cls_lock_client.c | 36 struct timespec64 mtime; in ceph_cls_lock() local 66 memset(&mtime, 0, sizeof(mtime)); in ceph_cls_lock() 67 ceph_encode_timespec64(p, &mtime); in ceph_cls_lock()
|
/kernel/linux/linux-6.6/net/ceph/ |
H A D | cls_lock_client.c | 38 struct timespec64 mtime; in ceph_cls_lock() local 68 memset(&mtime, 0, sizeof(mtime)); in ceph_cls_lock() 69 ceph_encode_timespec64(p, &mtime); in ceph_cls_lock()
|