git: kernel - allow PG_NOTMETA to be set on regular files too

看板DFBSD_commit作者時間15年前 (2011/04/03 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1Dbx7sup (DFBSD_commit)