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

看板DFBSD_commit作者時間16年前 (2010/02/04 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 107e9bcca13edfa5b6145d3e2424a8b991c2db8b Author: Matthew Dillon <dillon@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
文章代碼(AID): #1BQWTviO (DFBSD_commit)