git: kernel - SWAP CACHE part 3/many - Rearrange VM pagerops

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Feb 3 15:21:47 PST 2010


commit 107e9bcca13edfa5b6145d3e2424a8b991c2db8b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Feb 3 14:45:32 2010 -0800

    kernel - SWAP CACHE part 3/many - Rearrange VM pagerops
    
    * Remove pgo_init, pgo_pageunswapped, and pgo_strategy
    
    * The swap pager was the only consumer of pgo_pageunswapped and
      pgo_strategy.  Since these functions will soon operate on any
      VM object type and not just OBJT_SWAP there's no point putting
      them in pagerops.
    
    * Make swap_pager_strategy() and swap_pager_unswapped() global
      functions and call them directly.

Summary of changes:
 sys/dev/disk/vn/vn.c   |    4 +-
 sys/vm/default_pager.c |    4 +--
 sys/vm/device_pager.c  |   14 ++--------
 sys/vm/phys_pager.c    |    9 +------
 sys/vm/swap_pager.c    |   64 ++++++++++++++++++++++-------------------------
 sys/vm/vm_fault.c      |    2 +-
 sys/vm/vm_init.c       |    1 -
 sys/vm/vm_pager.c      |   40 +++---------------------------
 sys/vm/vm_pager.h      |   26 +++----------------
 sys/vm/vnode_pager.c   |    4 +--
 10 files changed, 47 insertions(+), 121 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/107e9bcca13edfa5b6145d3e2424a8b991c2db8b


-- 
DragonFly BSD source repository





More information about the Commits mailing list