LICENSE MIT
Define new flag CM_BUF_REDIR for use with the redirector.
When set, the flag indicates that the buffer is being held by the redirector
and it should be left untouched by the cache manager.
* we hold the global lock.
*/
+ /* Don't recycle a buffer held by the redirector. */
+ if (bp->flags & CM_BUF_REDIR)
+ continue;
+
/* don't recycle someone in our own chunk */
if (!cm_FidCmp(&bp->fid, &scp->fid)
&& (bp->offset.LowPart & (-cm_chunkSize))
#define CM_BUF_WAITING 0x40 /* someone's waiting for a flag to change */
#define CM_BUF_INDL 0x80 /* in the dirty list */
#define CM_BUF_EOF 0x100 /* read 0 bytes; used for detecting EOF */
+#define CM_BUF_REDIR 0x200 /* buffer held by the redirector */
typedef struct cm_buf_ops {
long (*Writep)(void *, osi_hyper_t *, long, long, struct cm_user *,