mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
vmmcache: redo how vnode locking is expected
This commit is contained in:
@@ -92,7 +92,7 @@ typedef struct vfs_t {
|
||||
typedef struct vnode_t {
|
||||
struct vops_t *ops;
|
||||
mutex_t lock;
|
||||
mutex_t sizelock;
|
||||
mutex_t size_lock;
|
||||
int refcount;
|
||||
int flags;
|
||||
int type;
|
||||
@@ -161,7 +161,7 @@ typedef struct vops_t {
|
||||
#define VOP_INIT(vn, o, f, t, v) \
|
||||
(vn)->ops = o; \
|
||||
MUTEX_INIT(&(vn)->lock); \
|
||||
MUTEX_INIT(&(vn)->sizelock); \
|
||||
MUTEX_INIT(&(vn)->size_lock); \
|
||||
(vn)->refcount = 1; \
|
||||
(vn)->flags = f; \
|
||||
(vn)->type = t; \
|
||||
|
||||
Reference in New Issue
Block a user