Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 18:05:44 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r229934 - head/sys/vm
Message-ID:  <201201101805.q0AI5i24021661@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jan 10 18:05:44 2012
New Revision: 229934
URL: http://svn.freebsd.org/changeset/base/229934

Log:
  Change the type of the paging_in_progress refcounter from u_short to
  u_int. With the auto-sized buffer cache on the modern machines, UFS
  metadata can generate more the 65535 pages belonging to the buffers
  undergoing i/o, overflowing the counter.
  
  Reported and tested by:	jimharris
  Reviewed by:	alc
  MFC after:	1 week

Modified:
  head/sys/vm/vm_object.h

Modified: head/sys/vm/vm_object.h
==============================================================================
--- head/sys/vm/vm_object.h	Tue Jan 10 15:29:03 2012	(r229933)
+++ head/sys/vm/vm_object.h	Tue Jan 10 18:05:44 2012	(r229934)
@@ -96,7 +96,7 @@ struct vm_object {
 	objtype_t type;			/* type of pager */
 	u_short flags;			/* see below */
 	u_short pg_color;		/* (c) color of first page in obj */
-	u_short paging_in_progress;	/* Paging (in or out) so don't collapse or destroy */
+	u_int paging_in_progress;	/* Paging (in or out) so don't collapse or destroy */
 	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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201101805.q0AI5i24021661>