From 9f0d226c727ca5b54b96de7e9f16e1aa1fc00b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 2 Oct 2007 00:01:18 +0000 Subject: [PATCH] The no-swap store shouldn't fool the page writer into believing that its pages could be written back. This should stop the page thief from stealing active pages that cannot be recreated easily :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22404 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm_store_anonymous_noswap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/vm/vm_store_anonymous_noswap.cpp b/src/system/kernel/vm/vm_store_anonymous_noswap.cpp index ee0d48404c..ef7fe64006 100644 --- a/src/system/kernel/vm/vm_store_anonymous_noswap.cpp +++ b/src/system/kernel/vm/vm_store_anonymous_noswap.cpp @@ -102,7 +102,7 @@ anonymous_write(struct vm_store *store, off_t offset, const iovec *vecs, size_t count, size_t *_numBytes, bool fsReenter) { // no place to write, this will cause the page daemon to skip this store - return 0; + return B_ERROR; }