git: kernel - TMPFS - Add infrastructure to main kernel to help

看板DFBSD_commit作者時間16年前 (2010/02/13 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 0a8aee15320dd5b32f4f0651e3dee5e934057b01 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Fri Feb 12 19:11:36 2010 -0800 kernel - TMPFS - Add infrastructure to main kernel to help support TMPFS * Add buwrite(), similar to bdwrite() except it fakes the write, marks the pages as valid and dirty, and returns them to the VM system leaving the buffer cache buffer clean. This is used by tmpfs in tmpfs_write() and allows the entire VM page cache to be used to cache dirty tmpfs data instead of just the buffer cache. Also add vm_page_ste_validdirty() to suppor buwrite(). * Implement MNTK_SG_MPSAFE for future use by tmpfs. * Fix a bug in swap_strategy(). When the entire block being requested is sparse (has no swap assignments) the function was not properly biodone()'ing the original bio after zero-filling the space. Summary of changes: sys/kern/vfs_bio.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ sys/kern/vfs_vopops.c | 3 +- sys/sys/buf.h | 1 + sys/vm/swap_pager.c | 17 +++++++++--- sys/vm/vm_page.c | 13 +++++++++ sys/vm/vm_page.h | 1 + 6 files changed, 96 insertions(+), 6 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0a8aee15320dd5b32f4f0651e3dee5e934057b01 -- DragonFly BSD source repository
文章代碼(AID): #1BTcE7CN (DFBSD_commit)