git: kernel - TMPFS - Add infrastructure to main kernel to help support TMPFS
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Feb 13 00:03:44 PST 2010
commit 0a8aee15320dd5b32f4f0651e3dee5e934057b01
Author: Matthew Dillon <dillon at 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
More information about the Commits
mailing list