Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 22:51:18 -0700 (PDT)
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_map.c
Message-ID:  <200405250551.i4P5pIG4066120@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2004/05/24 22:51:18 PDT

  FreeBSD src repository

  Modified files:
    sys/vm               vm_map.c 
  Log:
  Correct two error cases in vm_map_unwire():
  
  1. Contrary to the Single Unix Specification our implementation of
     munlock(2) when performed on an unwired virtual address range has
     returned an error.  Correct this.  Note, however, that the behavior
     of "system" unwiring is unchanged, only "user" unwiring is changed.
     If "system" unwiring is performed on an unwired virtual address
     range, an error is still returned.
  
  2. Performing an errant "system" unwiring on a virtual address range
     that was "user" (i.e., mlock(2)) but not "system" wired would
     incorrectly undo the "user" wiring instead of returning an error.
     Correct this.
  
  Discussed with:  green@
  Reviewed by:     tegge@
  
  Revision  Changes    Path
  1.336     +5 -4      src/sys/vm/vm_map.c



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