Kernel: Cleanup disk cache
Add missing include and cleanup code calling automatic disk sync.
This commit is contained in:
parent
f4be37700f
commit
a3f41fd4d9
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include <BAN/Array.h>
|
#include <BAN/Array.h>
|
||||||
#include <BAN/ByteSpan.h>
|
#include <BAN/ByteSpan.h>
|
||||||
|
#include <BAN/Vector.h>
|
||||||
#include <kernel/Memory/Types.h>
|
#include <kernel/Memory/Types.h>
|
||||||
|
|
||||||
namespace Kernel
|
namespace Kernel
|
||||||
|
|
|
@ -87,10 +87,7 @@ namespace Kernel
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
SystemTimer::get().sleep_ms(10'000);
|
SystemTimer::get().sleep_ms(10'000);
|
||||||
|
s_instance->initiate_sync(false);
|
||||||
LockGuard _(s_instance->m_device_lock);
|
|
||||||
s_instance->m_should_sync = true;
|
|
||||||
s_instance->m_sync_thread_blocker.unblock();
|
|
||||||
}
|
}
|
||||||
}, nullptr, sync_process
|
}, nullptr, sync_process
|
||||||
)));
|
)));
|
||||||
|
|
Loading…
Reference in New Issue