summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-01-18 21:39:05 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-01-18 21:39:05 +0000
commitd033f31444be9c6fb7ca6eb1ca0bc41a64d3fa62 (patch)
tree29681e564a54a26bc35f9f12ca54584621594da7
parent4db50a677e98e0ac0126a326bfa795817ea846c5 (diff)
Formerly data-return.c.~3~
-rw-r--r--libpager/data-return.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libpager/data-return.c b/libpager/data-return.c
index 11a5366b..3235f7b2 100644
--- a/libpager/data-return.c
+++ b/libpager/data-return.c
@@ -15,6 +15,11 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "priv.h"
+#include "memory_object.h"
+#include <stdio.h>
+#include <string.h>
+
/* Called by the kernel to write data to the backing store */
kern_return_t
_pager_seqnos_memory_object_data_return (mach_port_t object,
@@ -35,7 +40,9 @@ _pager_seqnos_memory_object_data_return (mach_port_t object,
struct lock_request *lr;
struct lock_list {struct lock_request *lr;
struct lock_list *next;} *lock_list, *ll;
-
+ int write_lock;
+ int wakeup;
+
if (!(p = check_port_type (object, pager_port_type)))
return EOPNOTSUPP;
@@ -156,6 +163,7 @@ _pager_seqnos_memory_object_data_return (mach_port_t object,
mutex_unlock (&p->interlock);
+ /* XXX can this really be done earlier inside pager_write_page? */
/* Now it is OK for the file size to change, so we can release our lock. */
if (slp)
{