mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 09:26:28 +02:00
Kernel/BlockBasedFileSystem: Drop remove_disk_cache_before_last_unmount
There's not much use in having this function, as the only remotely useful thing that it does is that it ensures that the disk cache is locked before destroying it. However, there shouldn't be any filesystem activity this late in the unmounting process anyway, so the locking doesn't seem necessary either.
This commit is contained in:
committed by
Sönke Holz
parent
71f970ff8f
commit
222acc9d38
@@ -121,14 +121,6 @@ BlockBasedFileSystem::BlockBasedFileSystem(OpenFileDescription& file_description
|
||||
|
||||
BlockBasedFileSystem::~BlockBasedFileSystem() = default;
|
||||
|
||||
void BlockBasedFileSystem::remove_disk_cache_before_last_unmount()
|
||||
{
|
||||
VERIFY(m_lock.is_locked());
|
||||
m_cache.with_exclusive([&](auto& cache) {
|
||||
cache.clear();
|
||||
});
|
||||
}
|
||||
|
||||
ErrorOr<void> BlockBasedFileSystem::initialize_while_locked()
|
||||
{
|
||||
VERIFY(m_lock.is_locked());
|
||||
|
||||
Reference in New Issue
Block a user