Remove vm_object::last_read. It is used by the old swap pager, but

not by the new one, i.e., vm/swap_pager.c rev 1.108.

Reviewed by:	dillon@backplane.com
This commit is contained in:
alc 1999-07-16 05:11:37 +00:00
parent 6330d22c6e
commit c1acb774fa
3 changed files with 3 additions and 6 deletions

View File

@ -64,7 +64,7 @@
*
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
*
* $Id: swap_pager.c,v 1.119 1999/06/26 02:46:46 mckusick Exp $
* $Id: swap_pager.c,v 1.120 1999/06/27 22:08:38 peter Exp $
*/
#include <sys/param.h>
@ -1193,7 +1193,6 @@ swap_pager_getpages(object, m, count, reqpage)
if (mreq->valid != VM_PAGE_BITS_ALL) {
return(VM_PAGER_ERROR);
} else {
mreq->object->last_read = lastpindex;
return(VM_PAGER_OK);
}

View File

@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_object.c,v 1.158 1999/07/01 19:53:42 peter Exp $
* $Id: vm_object.c,v 1.159 1999/07/11 18:30:32 alc Exp $
*/
/*
@ -175,7 +175,6 @@ _vm_object_allocate(type, size, object)
*/
object->hash_rand = object_hash_rand - 129;
object->last_read = 0;
object->generation++;
TAILQ_INSERT_TAIL(&vm_object_list, object, object_list);

View File

@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_object.h,v 1.56 1999/06/20 21:47:01 alc Exp $
* $Id: vm_object.h,v 1.57 1999/07/10 18:29:18 alc Exp $
*/
/*
@ -102,7 +102,6 @@ struct vm_object {
int resident_page_count; /* number of resident pages */
struct vm_object *backing_object; /* object that I'm a shadow of */
vm_ooffset_t backing_object_offset;/* Offset in backing object */
vm_offset_t last_read; /* last read in object -- detect seq behavior */
TAILQ_ENTRY(vm_object) pager_object_list; /* list of all objects of this pager type */
void *handle;
union {