vfs: refcount file structs used in fdescs
This commit is contained in:
parent
744c3b266f
commit
02c0a70a30
5 changed files with 22 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue