tmpfs: rename tmpfs::Inode to tmpfs::FileInode
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
apio 2023-02-25 18:11:39 +01:00
parent 05b627d037
commit b71d899b52
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ namespace TmpFS
Result<SharedPtr<VFS::Inode>> FileSystem::create_file_inode() Result<SharedPtr<VFS::Inode>> FileSystem::create_file_inode()
{ {
SharedPtr<Inode> inode = TRY(make_shared<Inode>()); SharedPtr<FileInode> inode = TRY(make_shared<FileInode>());
inode->set_fs(*this, {}); inode->set_fs(*this, {});
inode->set_inode_number(m_next_inode_number, {}); inode->set_inode_number(m_next_inode_number, {});
TRY(m_inodes.try_append(inode)); TRY(m_inodes.try_append(inode));

View File

@ -31,10 +31,10 @@ namespace TmpFS
Atomic<usize> m_next_inode_number { 2 }; Atomic<usize> m_next_inode_number { 2 };
}; };
class Inode : public VFS::FileInode class FileInode : public VFS::FileInode
{ {
public: public:
Inode() = default; FileInode() = default;
void set_fs(FileSystem& fs, Badge<FileSystem>) void set_fs(FileSystem& fs, Badge<FileSystem>)
{ {
@ -56,7 +56,7 @@ namespace TmpFS
return m_inode_number; return m_inode_number;
} }
virtual ~Inode() = default; virtual ~FileInode() = default;
private: private:
VFS::FileSystem* m_fs; VFS::FileSystem* m_fs;