tmpfs: rename tmpfs::Inode to tmpfs::FileInode

This commit is contained in:
apio 2023-02-25 18:11:39 +01:00
parent d3bda46325
commit 5fb292bc0e
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()
{
SharedPtr<Inode> inode = TRY(make_shared<Inode>());
SharedPtr<FileInode> inode = TRY(make_shared<FileInode>());
inode->set_fs(*this, {});
inode->set_inode_number(m_next_inode_number, {});
TRY(m_inodes.try_append(inode));

View File

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