Author: kib
Date: Wed May 20 23:15:56 2015
New Revision: 283163
URL: https://svnweb.freebsd.org/changeset/base/283163

Log:
  Do grammar fix in the comment to record the right commit message for
  r283162.
  
  Fix a cosmetic issue with vm_page_alloc() calling vm_page_free_toq()
  with the page not completely satisfying vm_page_free() assertions.
  The page is not owned by the object, since insertion failed.  But
  besides m->object reset to NULL, we should also set VPO_UNMANAGED flag
  for consistency.
  
  Reported by:  pho
  Reviewed by:  alc
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c       Wed May 20 23:03:22 2015        (r283162)
+++ head/sys/vm/vm_page.c       Wed May 20 23:15:56 2015        (r283163)
@@ -3154,8 +3154,8 @@ vm_page_zero_invalid(vm_page_t m, boolea
        VM_OBJECT_ASSERT_WLOCKED(m->object);
        /*
         * Scan the valid bits looking for invalid sections that
-        * must be zerod.  Invalid sub-DEV_BSIZE'd areas ( where the
-        * valid bit may be set ) have already been zerod by
+        * must be zeroed.  Invalid sub-DEV_BSIZE'd areas ( where the
+        * valid bit may be set ) have already been zeroed by
         * vm_page_set_validclean().
         */
        for (b = i = 0; i <= PAGE_SIZE / DEV_BSIZE; ++i) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to