From 0b52b1b3eedce501f73c4af309147b35a2e6f85b Mon Sep 17 00:00:00 2001 From: John Dyson Date: Thu, 19 Mar 1998 22:49:01 +0000 Subject: [PATCH] Remove b_generation. --- sys/sys/bio.h | 5 +++-- sys/sys/buf.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/sys/bio.h b/sys/sys/bio.h index a3f6725fc55..6d6b3563b7e 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)buf.h 8.9 (Berkeley) 3/30/95 - * $Id: buf.h,v 1.47 1998/03/08 09:58:22 julian Exp $ + * $Id: buf.h,v 1.48 1998/03/16 01:55:33 dyson Exp $ */ #ifndef _SYS_BUF_H_ @@ -106,7 +106,6 @@ struct buf { struct vnode *b_vp; /* Device vnode. */ int b_dirtyoff; /* Offset in buffer of dirty region. */ int b_dirtyend; /* Offset of end of dirty region. */ - int b_generation; /* Generation count of buffer */ struct ucred *b_rcred; /* Read credentials reference. */ struct ucred *b_wcred; /* Write credentials reference. */ int b_validoff; /* Offset in buffer of valid region. */ @@ -163,6 +162,8 @@ struct buf { #define B_CLUSTER 0x40000000 /* pagein op, so swap() can count it */ #define B_BOUNCE 0x80000000 /* bounce buffer flag */ +#define NOOFFSET (-1LL) /* No buffer offset calculated yet */ + typedef struct buf_queue_head { TAILQ_HEAD(, buf) queue; struct buf *insert_point; diff --git a/sys/sys/buf.h b/sys/sys/buf.h index a3f6725fc55..6d6b3563b7e 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)buf.h 8.9 (Berkeley) 3/30/95 - * $Id: buf.h,v 1.47 1998/03/08 09:58:22 julian Exp $ + * $Id: buf.h,v 1.48 1998/03/16 01:55:33 dyson Exp $ */ #ifndef _SYS_BUF_H_ @@ -106,7 +106,6 @@ struct buf { struct vnode *b_vp; /* Device vnode. */ int b_dirtyoff; /* Offset in buffer of dirty region. */ int b_dirtyend; /* Offset of end of dirty region. */ - int b_generation; /* Generation count of buffer */ struct ucred *b_rcred; /* Read credentials reference. */ struct ucred *b_wcred; /* Write credentials reference. */ int b_validoff; /* Offset in buffer of valid region. */ @@ -163,6 +162,8 @@ struct buf { #define B_CLUSTER 0x40000000 /* pagein op, so swap() can count it */ #define B_BOUNCE 0x80000000 /* bounce buffer flag */ +#define NOOFFSET (-1LL) /* No buffer offset calculated yet */ + typedef struct buf_queue_head { TAILQ_HEAD(, buf) queue; struct buf *insert_point;