cvs commit: src/sys/vm vm_page.c

Alan Cox alc at FreeBSD.org
Tue Dec 30 17:44:46 PST 2003


alc         2003/12/30 17:44:45 PST

  FreeBSD src repository

  Modified files:
    sys/vm               vm_page.c 
  Log:
  Simplify vm_page_grab(): Don't bother with the generation check.  If the
  vm object hasn't changed, the desired page will be at or near the root
  of the vm object's splay tree, making vm_page_lookup() cheap.  (The only
  lock required for vm_page_lookup() is already held.)  If, however, the
  vm object has changed and retry was requested, eliminating the generation
  check also eliminates a pointless acquisition and release of the page
  queues lock.
  
  Revision  Changes    Path
  1.272     +6 -18     src/sys/vm/vm_page.c


More information about the cvs-src mailing list