Kernel/FileSystem: Simplify the ProcFS inode code

This is done by merging all scattered pieces of derived classes from the
ProcFSInode class into that one class, so we don't use inheritance but
rather simplistic checks to determine the proper code for each ProcFS
inode with its specific characteristics.
This commit is contained in:
Liav A 2022-11-25 22:29:27 +02:00 committed by Jelle Raaijmakers
commit 722ae35329
Notes: sideshowbarker 2024-07-17 01:04:03 +09:00
25 changed files with 583 additions and 913 deletions

View file

@ -14,18 +14,8 @@
namespace Kernel {
class ProcFSInode;
class ProcFSProcessDirectoryInode;
class ProcFSGlobalInode;
class ProcFSAssociatedProcessInode;
class ProcFSProcessSubDirectoryInode;
class ProcFS final : public FileSystem {
friend class ProcFSInode;
friend class ProcFSDirectoryInode;
friend class ProcFSProcessDirectoryInode;
friend class ProcFSGlobalInode;
friend class ProcFSAssociatedProcessInode;
friend class ProcFSProcessSubDirectoryInode;
public:
virtual ~ProcFS() override;
@ -39,7 +29,7 @@ public:
private:
ProcFS();
LockRefPtr<ProcFSDirectoryInode> m_root_inode;
LockRefPtr<ProcFSInode> m_root_inode;
};
}