看板 DFBSD_commit 關於我們 聯絡資訊
commit bfa86281b980fee652fa89f854faf34a4b9689ad Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Apr 2 16:05:58 2011 -0700 kernel - allow PG_NOTMETA to be set on regular files too * Allow this flag to be set for VM pages associated with regular files too, the flag prevents the related VM page from being swapcache'd. The flag is set by HAMMER on normal file buffer cache buffers when double buffering is enabled to prevent swapcache from caching the data twice. * This also fixes an issue when a large number of files exceeding the maxvnode limit are recycled, and double buffering is enabled along with vm.swapcache.data_enable. We do not want swapcache to try to cache the pages via the vnode, instead we'd rather it cache them via the block device (whos vnode doesn't get recycled). Summary of changes: sys/vm/swap_pager.h | 2 ++ sys/vm/vm_swapcache.c | 21 +++++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfa86281b980fee652fa89f854faf34a4b9689ad -- DragonFly BSD source repository