summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-30 16:40:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-30 16:40:29 +0000
commit29d473ae060ba8e3583d1affc2380108aad1dc7c (patch)
tree8a70e0676eb375795dcb4283935ee993a411fa32
parentb0c5347eb00cab5da924f0b6338b43f622677386 (diff)
(_pager_lock_object): Eliminate spurious extra lock acquisition around
pagemap frobbing.
-rw-r--r--libpager/lock-object.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libpager/lock-object.c b/libpager/lock-object.c
index c60de3b5..d2f6da6d 100644
--- a/libpager/lock-object.c
+++ b/libpager/lock-object.c
@@ -85,12 +85,10 @@ _pager_lock_object (struct pager *p,
if (should_flush)
{
- mutex_lock (&p->interlock);
_pager_pagemap_resize (p, offset + size);
pm_entries = &p->pagemap[offset / __vm_page_size];
for (i = 0; i < size / vm_page_size; i++)
pm_entries[i] &= ~PM_INCORE;
- mutex_unlock (&p->interlock);
}
}