diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-19 22:28:09 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-19 22:28:09 +0100 |
commit | d0f06e5f3ff7c3095538bade2543bc6a2ed13676 (patch) | |
tree | 694781e3a53dfc43422cf9f172b6b6e8d5b96071 /Kernel/Process.cpp | |
parent | 1f44cd9dd94f87154234c0d3d12a5be9d6ab6155 (diff) | |
download | serenity-d0f06e5f3ff7c3095538bade2543bc6a2ed13676.zip |
Automatically call Inode::flush_metadata() before an Inode is destroyed.
Use a little template magic to have Retainable::release() call out to
T::will_be_destroyed() if such a function exists before actually calling
the destructor. This gives us full access to virtual functions in the
pre-destruction code.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 04415ea033..c9b3c18f89 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -1104,7 +1104,7 @@ int Process::sys$utime(const char* pathname, const Unix::utimbuf* buf) atime = now; } inode.set_atime(atime); - inode.set_mtime(atime); + inode.set_mtime(mtime); inode.flush_metadata(); return 0; } |