vfs: switch to dirent tracking over inode tracking

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-02 22:09:05 +02:00
commit f9d760993d
4 changed files with 77 additions and 62 deletions

View file

@ -78,6 +78,8 @@ struct _dirent {
u64 type;
spinlock_t lock;
u64 refcount;
char *name;
};
@ -91,5 +93,7 @@ inode_t *inode_create();
void inode_free(inode_t *inode);
void inode_inc_ref(inode_t *inode);
void inode_dec_ref(inode_t *inode);
void dirent_inc_ref(dirent_t *dent);
void dirent_dec_ref(dirent_t *dent);
#endif /* _INODE_H_ */