Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 2004 20:45:07 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm vm_page.c vm_page.h
Message-ID:  <200412122045.iBCKj7sl069126@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2004-12-12 20:45:07 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/vm               vm_page.c vm_page.h 
  Log:
  MFC vm_page.c's revision 1.294 and vm_page.h's revision 1.134
   Introduce VM_ALLOC_NOBUSY, an option to vm_page_alloc() and vm_page_grab()
   that indicates that the caller does not want a page with its busy flag
   set.  In many places, the global page queues lock is acquired and released
   just to clear the busy flag on a just allocated page.  Both the allocation
   of the page and the clearing of the busy flag occur while the containing
   vm object is locked.  So, the busy flag might as well never be set.
  
  MFC vm_page.c's revision 1.298
   This change (1) eliminates the calls to vm_page_busy() that
   immediately precede a call to vm_page_remove() or functions, such as
   vm_page_free() and vm_page_rename(), that call it and (2) relaxes the
   requirement in vm_page_remove() that the vm page's PG_BUSY flag is
   set.
  
  Revision   Changes    Path
  1.290.2.2  +8 -16     src/sys/vm/vm_page.c
  1.132.2.1  +1 -0      src/sys/vm/vm_page.h



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