summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pager.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-12-28 21:03:42 +0000
committerdillon <dillon@FreeBSD.org>2002-12-28 21:03:42 +0000
commit1f367998c639b9b2dee080f7467459ca1022d8f6 (patch)
tree6cffc6f9ccdc1c4a44a43daf79d118bd9b6cede7 /sys/vm/vm_pager.h
parentfd92c8a19592993604b8a8f8e42a06219e8dd545 (diff)
downloadFreeBSD-src-1f367998c639b9b2dee080f7467459ca1022d8f6.zip
FreeBSD-src-1f367998c639b9b2dee080f7467459ca1022d8f6.tar.gz
Allow the VM object flushing code to cluster. When the filesystem syncer
comes along and flushes a file which has been mmap()'d SHARED/RW, with dirty pages, it was flushing the underlying VM object asynchronously, resulting in thousands of 8K writes. With this change the VM Object flushing code will cluster dirty pages in 64K blocks. Note that until the low memory deadlock issue is reviewed, it is not safe to allow the pageout daemon to use this feature. Forced pageouts still use fs block size'd ops for the moment. MFC after: 3 days
Diffstat (limited to 'sys/vm/vm_pager.h')
-rw-r--r--sys/vm/vm_pager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h
index 2c6d196..07b6878 100644
--- a/sys/vm/vm_pager.h
+++ b/sys/vm/vm_pager.h
@@ -79,8 +79,10 @@ struct pagerops {
#define VM_PAGER_ERROR 4
#define VM_PAGER_AGAIN 5
-#define VM_PAGER_PUT_SYNC 0x1
-#define VM_PAGER_PUT_INVAL 0x2
+#define VM_PAGER_PUT_SYNC 0x0001
+#define VM_PAGER_PUT_INVAL 0x0002
+#define VM_PAGER_IGNORE_CLEANCHK 0x0004
+#define VM_PAGER_CLUSTER_OK 0x0008
#ifdef _KERNEL
#ifdef MALLOC_DECLARE
OpenPOWER on IntegriCloud