Home
last modified time | relevance | path

Searched full:mtime (Results 1 – 25 of 162) sorted by relevance

1234567

/linux-6.8/init/
Dinitramfs.c125 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()
163 do_utime(de->name, de->mtime); in dir_utime()
168 static void __init do_utime(char *filename, time64_t mtime) {} in do_utime() argument
169 static void __init do_utime_path(const struct path *path, time64_t mtime) {} in do_utime_path() argument
[all …]
/linux-6.8/fs/squashfs/
Dsquashfs_fs.h274 __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
/linux-6.8/fs/f2fs/
Dgc.c337 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 - sit_i->min_mtime), in get_cb_cost()
408 if (cur_ve->mtime > next_ve->mtime) { in f2fs_check_victim_tree()
411 cur_ve->mtime, next_ve->mtime); in f2fs_check_victim_tree()
[all …]
Dgc.h62 unsigned long long mtime; /* mtime of section */ member
Dsegment.h202 unsigned long long age; /* mtime of GCed section*/
221 unsigned long long mtime; /* modification time of the segment */ member
388 se->mtime = le64_to_cpu(rs->mtime); in seg_info_from_raw_sit()
398 rs->mtime = cpu_to_le64(se->mtime); in __seg_info_to_raw_sit()
/linux-6.8/arch/um/drivers/
Dcow_user.c27 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 …]
Dubd_kern.c519 time64_t mtime; in ubd_file_size() local
535 &mtime, &size, &sector_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()
/linux-6.8/usr/
Dgen_init_cpio.c91 (long) 0, /* mtime */ in cpio_trailer()
123 (long) default_mtime, /* mtime */ in cpio_mkslink()
172 (long) default_mtime, /* mtime */ in cpio_mkgeneric()
266 (long) default_mtime, /* mtime */ in cpio_mknod()
333 time_t mtime; in cpio_mkfile() local
353 mtime = default_mtime; in cpio_mkfile()
355 mtime = buf.st_mtime; in cpio_mkfile()
356 if (mtime > 0xffffffff) { in cpio_mkfile()
359 mtime = 0xffffffff; in cpio_mkfile()
362 if (mtime < 0) { in cpio_mkfile()
[all …]
/linux-6.8/fs/vboxsf/
Dfile.c188 * side, we do a "stat" on the host side, then compare the mtime with the
189 * last known mtime and invalidate the page-cache if they differ.
196 * 2) Do another "stat" and compare mtime again. Unfortunately the vboxsf
200 * 2a) "stat" and compare mtime, on stat failure invalidate the cache
201 * 2b) "stat" and compare mtime, on stat failure do nothing
298 /* mtime changed */ in vboxsf_writepage()
333 /* mtime changed */ in vboxsf_write_end()
/linux-6.8/fs/smb/client/
Dfscache.h53 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()
/linux-6.8/fs/hostfs/
Dhostfs_user.c33 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()
/linux-6.8/fs/
Dstat.c61 stat->mtime = inode_get_mtime(inode); in generic_fillattr()
348 tmp.st_mtime = stat->mtime.tv_sec; in cp_old_stat()
425 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat()
429 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat()
568 tmp.st_mtime = stat->mtime.tv_sec; in cp_new_stat64()
569 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64()
652 tmp.stx_mtime.tv_sec = stat->mtime.tv_sec; in cp_statx()
653 tmp.stx_mtime.tv_nsec = stat->mtime.tv_nsec; in cp_statx()
741 tmp.st_mtime = stat->mtime.tv_sec; in cp_compat_stat()
742 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_compat_stat()
/linux-6.8/fs/hfs/
Dcatalog.c38 __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()
/linux-6.8/fs/fuse/
Dreaddir.c464 * cache; both cases require an up-to-date mtime value. in fuse_readdir_cached()
477 /* Starting cache? Set cache mtime. */ in fuse_readdir_cached()
479 fi->rdc.mtime = inode_get_mtime(inode); in fuse_readdir_cached()
491 struct timespec64 mtime = inode_get_mtime(inode); in fuse_readdir_cached() local
494 !timespec64_equal(&fi->rdc.mtime, &mtime)) { in fuse_readdir_cached()
Dinode.c227 /* mtime from server may be stale due to local buffered write */ in fuse_change_attributes_common()
229 inode_set_mtime(inode, attr->mtime, attr->mtimensec); in fuse_change_attributes_common()
303 * In case of writeback_cache enabled, writes update mtime, ctime and in fuse_change_attributes()
312 attr->mtime = inode_get_mtime_sec(inode); in fuse_change_attributes()
348 .tv_sec = attr->mtime, in fuse_change_attributes()
353 * Auto inval mode also checks and invalidates if mtime in fuse_change_attributes()
380 inode_set_mtime(inode, attr->mtime, attr->mtimensec); in fuse_init_inode()
1484 struct timespec64 mtime = inode_get_mtime(&fi->inode); in fuse_fill_attr_from_inode() local
1492 .mtime = mtime.tv_sec, in fuse_fill_attr_from_inode()
1495 .mtimensec = mtime.tv_nsec, in fuse_fill_attr_from_inode()
/linux-6.8/fs/ceph/
Dinode.c749 * Helpers to fill in size, ctime, mtime, and atime. We have to be
752 * time_warp_seq or truncate_seq have increased. (Ordinarily, mtime
830 struct timespec64 *mtime, struct timespec64 *atime) in ceph_fill_file_time() argument
852 doutc(cl, "mtime %lld.%09ld -> %lld.%09ld tw %d -> %d\n", in ceph_fill_file_time()
855 mtime->tv_sec, mtime->tv_nsec, in ceph_fill_file_time()
858 inode_set_mtime_to_ts(inode, *mtime); in ceph_fill_file_time()
866 if (timespec64_compare(mtime, &ts) > 0) { in ceph_fill_file_time()
867 doutc(cl, "mtime %lld.%09ld -> %lld.%09ld inc\n", in ceph_fill_file_time()
869 mtime->tv_sec, mtime->tv_nsec); in ceph_fill_file_time()
870 inode_set_mtime_to_ts(inode, *mtime); in ceph_fill_file_time()
[all …]
/linux-6.8/net/ceph/
Dcls_lock_client.c38 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()
/linux-6.8/tools/testing/selftests/powerpc/nx-gzip/
Dgzfht_test.c136 buf[i++] = 0x00; /* MTIME */ in gzip_header_blank()
137 buf[i++] = 0x00; /* MTIME */ in gzip_header_blank()
138 buf[i++] = 0x00; /* MTIME */ in gzip_header_blank()
139 buf[i++] = 0x00; /* MTIME */ in gzip_header_blank()
/linux-6.8/fs/overlayfs/
Dfile.c231 /* Update size/mtime */ in ovl_file_modified()
239 struct timespec64 mtime, umtime; in ovl_file_accessed() local
252 mtime = inode_get_mtime(inode); in ovl_file_accessed()
254 if ((!timespec64_equal(&mtime, &umtime)) || in ovl_file_accessed()
/linux-6.8/fs/afs/
Dfsclient.c178 u32 mask = 0, mtime = 0, owner = 0, group = 0, mode = 0; in xdr_encode_AFS_StoreStatus() local
183 mtime = attr->ia_mtime.tv_sec; in xdr_encode_AFS_StoreStatus()
202 *bp++ = htonl(mtime); in xdr_encode_AFS_StoreStatus()
559 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_create_file()
613 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_make_dir()
912 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_symlink()
1090 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_store_data64()
1144 *bp++ = htonl(op->mtime.tv_sec); /* mtime */ in afs_fs_store_data()
/linux-6.8/arch/riscv/include/asm/
Dclint.h17 * The ISA defines mtime as a 64-bit memory-mapped register that increments at
/linux-6.8/include/uapi/linux/
Djffs2.h130 /* The uid, gid, atime, mtime and ctime members could be longer, but
148 jint32_t mtime; /* Last modification time. */ member
/linux-6.8/fs/fat/
Dmisc.c302 * truncate mtime to 2 second granularity
330 * ctime and mtime share the same on-disk field, and should be in fat_truncate_time()
331 * identical in memory. all mtime updates will be applied to ctime, in fat_truncate_time()
/linux-6.8/include/linux/ceph/
Dceph_fs.h421 struct ceph_timespec mtime; member
480 struct ceph_timespec mtime; member
592 struct ceph_timespec ctime, mtime, atime; member
804 struct ceph_timespec mtime, atime, ctime; member
862 struct ceph_timespec mtime, atime; member
/linux-6.8/include/linux/
Dstat.h48 struct timespec64 mtime; member

1234567