vfs: switch to dirent tracking over inode tracking
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
c7915d8e49
commit
f9d760993d
4 changed files with 77 additions and 62 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue