diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-21 17:05:31 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-31 09:17:54 +0300 |
commit | 235e57935bf328c4cce371ffc4dd1d8fab4885cd (patch) | |
tree | ab0b81c6689fe72425b5c560e9b9b74a40b37265 /init | |
parent | 716308a5331bf907b819f9db8dc942b19568f925 (diff) | |
download | linux-235e57935bf328c4cce371ffc4dd1d8fab4885cd.tar.xz |
init: add an init_utimes helper
Add a simple helper to set timestamps with a kernel space file name and
switch the early init code over to it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'init')
-rw-r--r-- | init/initramfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 744e111baba4..e6dbfb767057 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -111,8 +111,7 @@ static long __init do_utime(char *filename, time64_t mtime) t[0].tv_nsec = 0; t[1].tv_sec = mtime; t[1].tv_nsec = 0; - - return do_utimes(AT_FDCWD, filename, t, AT_SYMLINK_NOFOLLOW); + return init_utimes(filename, t); } static __initdata LIST_HEAD(dir_list); |