forked from Bananymous/banan-os
Kernel: Cleanup disk cache
Add missing include and cleanup code calling automatic disk sync.
This commit is contained in:
@@ -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
|
||||||
)));
|
)));
|
||||||
|
|||||||
Reference in New Issue
Block a user