mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
FileSystem: Move block_size() from DiskBackedFS to FS
Let's just say that all filesystems have a block size, to keep things nice and simple.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 12:45:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c0bfea1b5c3
@@ -139,14 +139,6 @@ ByteBuffer DiskBackedFS::read_blocks(unsigned index, unsigned count) const
|
||||
return blocks;
|
||||
}
|
||||
|
||||
void DiskBackedFS::set_block_size(int block_size)
|
||||
{
|
||||
ASSERT(block_size > 0);
|
||||
if (block_size == m_block_size)
|
||||
return;
|
||||
m_block_size = block_size;
|
||||
}
|
||||
|
||||
void DiskBackedFS::flush_writes()
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
|
||||
Reference in New Issue
Block a user