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:
implicitfield
2025-03-09 21:14:23 +02:00
committed by Sönke Holz
parent 71f970ff8f
commit 222acc9d38
4 changed files with 0 additions and 12 deletions

View File

@@ -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());