diff options
author | phk <phk@FreeBSD.org> | 2004-10-27 08:05:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-10-27 08:05:02 +0000 |
commit | 56a7ee8e7fb7df8976226828bc05891fcd3065f5 (patch) | |
tree | 338db8cfa46f227a95f8565676019ca7d695a37c /sys/sys/bufobj.h | |
parent | f3795e5212484aa4f59911ad7498e0d0d27e6275 (diff) | |
download | FreeBSD-src-56a7ee8e7fb7df8976226828bc05891fcd3065f5.zip FreeBSD-src-56a7ee8e7fb7df8976226828bc05891fcd3065f5.tar.gz |
Move the syncer linkage from vnode to bufobj.
This is not quite a perfect separation: the syncer still think it knows
that everything is a vnode.
Diffstat (limited to 'sys/sys/bufobj.h')
-rw-r--r-- | sys/sys/bufobj.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/sys/bufobj.h b/sys/sys/bufobj.h index 337d0cd..0a2f915 100644 --- a/sys/sys/bufobj.h +++ b/sys/sys/bufobj.h @@ -85,8 +85,15 @@ struct bufobj { struct buf_ops *bo_ops; /* - Buffer operations */ int bo_bsize; /* - Block size for i/o */ struct vm_object *bo_object; /* v Place to store VM object */ + LIST_ENTRY(bufobj) bo_synclist; /* S dirty vnode list */ + void *bo_private; /* private pointer */ }; +/* + * XXX BO_ONWORKLST could be replaced with a check for NULL list elements + * in v_synclist. + */ +#define BO_ONWORKLST (1 << 0) /* On syncer work-list */ #define BO_WWAIT (1 << 1) /* Wait for output to complete */ #define BO_LOCK(bo) \ @@ -111,5 +118,3 @@ int bufobj_wwait(struct bufobj *bo, int slpflag, int timeo); #endif /* defined(_KERNEL) || defined(_KVM_VNODE) */ #endif /* _SYS_BUFOBJ_H_ */ - - |