mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Ext2FS: Minor cleanup, remove an unused function
This commit is contained in:
parent
84bedd5528
commit
8d4d63d9b6
2 changed files with 1 additions and 8 deletions
|
@ -5,7 +5,6 @@
|
|||
#include <Kernel/FileSystem/FileDescription.h>
|
||||
#include <Kernel/FileSystem/ext2_fs.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <Kernel/UnixTypes.h>
|
||||
#include <LibC/errno_numbers.h>
|
||||
|
||||
|
@ -55,11 +54,6 @@ bool Ext2FS::flush_super_block()
|
|||
return true;
|
||||
}
|
||||
|
||||
unsigned Ext2FS::first_block_of_group(GroupIndex group_index) const
|
||||
{
|
||||
return super_block().s_first_data_block + (group_index * super_block().s_blocks_per_group);
|
||||
}
|
||||
|
||||
const ext2_group_desc& Ext2FS::group_descriptor(GroupIndex group_index) const
|
||||
{
|
||||
// FIXME: Should this fail gracefully somehow?
|
||||
|
|
|
@ -85,7 +85,6 @@ private:
|
|||
ext2_group_desc* block_group_descriptors() { return (ext2_group_desc*)m_cached_group_descriptor_table.value().data(); }
|
||||
const ext2_group_desc* block_group_descriptors() const { return (const ext2_group_desc*)m_cached_group_descriptor_table.value().data(); }
|
||||
void flush_block_group_descriptor_table();
|
||||
unsigned first_block_of_group(unsigned groupIndex) const;
|
||||
unsigned inodes_per_block() const;
|
||||
unsigned inodes_per_group() const;
|
||||
unsigned blocks_per_group() const;
|
||||
|
@ -135,7 +134,7 @@ private:
|
|||
mutable ext2_super_block m_super_block;
|
||||
mutable Optional<KBuffer> m_cached_group_descriptor_table;
|
||||
|
||||
mutable HashMap<BlockIndex, RefPtr<Ext2FSInode>> m_inode_cache;
|
||||
mutable HashMap<InodeIndex, RefPtr<Ext2FSInode>> m_inode_cache;
|
||||
|
||||
bool m_super_block_dirty { false };
|
||||
bool m_block_group_descriptors_dirty { false };
|
||||
|
|
Loading…
Add table
Reference in a new issue