vfs: refcount file structs used in fdescs

This commit is contained in:
Michael Shaw 2024-08-21 15:44:50 -04:00
commit 02c0a70a30
5 changed files with 22 additions and 4 deletions

View file

@ -91,6 +91,9 @@ struct dirent {
struct file {
struct vnode *vnode;
spinlock_t ref_lock;
uint64_t refcount;
ino_t ino_num; /* inode number */
uint32_t type; /* type of the file */
uint64_t size; /* size of the file */