git: kernel - Change pager interface to pass page index 1/2

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Nov 4 13:54:08 PST 2020


commit 5ebb17ade080f18c7363356e0f8f195dde213565
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Nov 4 13:49:03 2020 -0800

    kernel - Change pager interface to pass page index 1/2
    
    * Change the *getpage() API to include the page index as
      an argument.  This allows us to avoid passing any vm_page_t
      for OBJT_MGTDEVICE VM pages.
    
      By removing this requirement, the VM system no longer has to
      pre-allocate a placemarker page for DRM faults and the DRM
      system can directly install the page in the pmap without
      tracking it via a vm_page_t.

Summary of changes:
 sys/kern/kern_exec.c   |  2 +-
 sys/kern/sysv_shm.c    |  2 +-
 sys/vm/default_pager.c |  3 ++-
 sys/vm/device_pager.c  |  8 +++---
 sys/vm/phys_pager.c    |  3 ++-
 sys/vm/swap_pager.c    |  5 ++--
 sys/vm/vm_fault.c      | 70 ++++++++++++++++++++++++++++++++++++++------------
 sys/vm/vm_object.c     | 59 ++++++++++++++++++++++++++++++++++++++++--
 sys/vm/vm_pager.c      |  3 ++-
 sys/vm/vm_pager.h      | 11 +++++---
 10 files changed, 131 insertions(+), 35 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5ebb17ade080f18c7363356e0f8f195dde213565


-- 
DragonFly BSD source repository



More information about the Commits mailing list