Remove unused fields from struct buf:

b_savekva
	b_validoff
	b_validend

Reviewed by:	dillon, bde
This commit is contained in:
phk 1999-05-06 17:06:41 +00:00
parent 07346f9ac9
commit 45443ee5d4
3 changed files with 3 additions and 18 deletions

View File

@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
* $Id: vfs_bio.c,v 1.207 1999/04/29 18:15:25 alc Exp $
* $Id: vfs_bio.c,v 1.208 1999/05/02 23:56:10 alc Exp $
*/
/*
@ -2642,11 +2642,6 @@ vfs_unbusy_pages(struct buf * bp)
* Set the valid bits in a page based on the supplied offset. The
* range is restricted to the buffer's size.
*
* For NFS, the range is additionally restricted to b_validoff/end.
* validoff/end must be DEV_BSIZE chunky or the end must be at the
* file EOF. If a dirty range exists, set the page's dirty bits
* inclusively.
*
* This routine is typically called after a read completes.
*/
static void

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.9 (Berkeley) 3/30/95
* $Id: buf.h,v 1.65 1999/03/12 02:24:55 julian Exp $
* $Id: buf.h,v 1.66 1999/05/02 23:56:34 alc Exp $
*/
#ifndef _SYS_BUF_H_
@ -122,13 +122,8 @@ struct buf {
int b_dirtyend; /* Offset of end of dirty region. */
struct ucred *b_rcred; /* Read credentials reference. */
struct ucred *b_wcred; /* Write credentials reference. */
#if 0
int b_validoff; /* Offset in buffer of valid region. */
int b_validend; /* Offset of end of valid region. */
#endif
daddr_t b_pblkno; /* physical block number */
void *b_saveaddr; /* Original b_addr for physio. */
caddr_t b_savekva; /* saved kva for transfer while bouncing */
void *b_driver1; /* for private use by the driver */
void *b_driver2; /* for private use by the driver */
union pager_info {

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.9 (Berkeley) 3/30/95
* $Id: buf.h,v 1.65 1999/03/12 02:24:55 julian Exp $
* $Id: buf.h,v 1.66 1999/05/02 23:56:34 alc Exp $
*/
#ifndef _SYS_BUF_H_
@ -122,13 +122,8 @@ struct buf {
int b_dirtyend; /* Offset of end of dirty region. */
struct ucred *b_rcred; /* Read credentials reference. */
struct ucred *b_wcred; /* Write credentials reference. */
#if 0
int b_validoff; /* Offset in buffer of valid region. */
int b_validend; /* Offset of end of valid region. */
#endif
daddr_t b_pblkno; /* physical block number */
void *b_saveaddr; /* Original b_addr for physio. */
caddr_t b_savekva; /* saved kva for transfer while bouncing */
void *b_driver1; /* for private use by the driver */
void *b_driver2; /* for private use by the driver */
union pager_info {