1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 03:44:58 +00:00

Ext2FS: Simplify block bitmap stuff.

Block bitmaps are only ever one block in size. I don't know why I thought
otherwise, but use this info to simplify the code. :^)
This commit is contained in:
Andreas Kling 2019-04-23 14:51:47 +02:00
parent 58240fdb33
commit 1bf37db9a9
3 changed files with 23 additions and 45 deletions

View file

@ -107,7 +107,6 @@ private:
void dump_inode_bitmap(GroupIndex) const;
template<typename F> void traverse_inode_bitmap(GroupIndex, F) const;
template<typename F> void traverse_block_bitmap(GroupIndex, F) const;
bool add_inode_to_directory(InodeIndex parent, InodeIndex child, const String& name, byte file_type, int& error);
bool write_directory_inode(InodeIndex, Vector<DirectoryEntry>&&);