mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03:00
Kernel: Make VirtualFileSystem::sync() static
This commit is contained in:
parent
0d39bd04d3
commit
07c4c89297
Notes:
sideshowbarker
2024-07-18 09:22:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/07c4c892970
@ -93,7 +93,7 @@ public:
|
||||
|
||||
InodeIdentifier root_inode_id() const;
|
||||
|
||||
void sync();
|
||||
static void sync();
|
||||
|
||||
Custody& root_custody();
|
||||
KResultOr<NonnullRefPtr<Custody>> resolve_path(StringView path, Custody& base, RefPtr<Custody>* out_parent = nullptr, int options = 0, int symlink_recursion_level = 0);
|
||||
|
@ -12,7 +12,7 @@ namespace Kernel {
|
||||
KResultOr<FlatPtr> Process::sys$sync()
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
VirtualFileSystem::the().sync();
|
||||
VirtualFileSystem::sync();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ UNMAP_AFTER_INIT void SyncTask::spawn()
|
||||
Process::create_kernel_process(syncd_thread, "SyncTask", [] {
|
||||
dbgln("SyncTask is running");
|
||||
for (;;) {
|
||||
VirtualFileSystem::the().sync();
|
||||
VirtualFileSystem::sync();
|
||||
(void)Thread::current()->sleep(Time::from_seconds(1));
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user