diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-10 22:05:09 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-10 22:05:09 +0200 |
commit | b14e0100f5295abd950eef636fa16df181504401 (patch) | |
tree | 8335e68359360ae50064e7164b0a25277fb33ee0 /ext2fs | |
parent | 7c3323a25bc1d5844feb7f9ed241fdbdb4819739 (diff) | |
download | hurd-b14e0100f5295abd950eef636fa16df181504401.tar.gz hurd-b14e0100f5295abd950eef636fa16df181504401.tar.bz2 hurd-b14e0100f5295abd950eef636fa16df181504401.zip |
Do not cache the R/O proxy
We cannot properly detect when to release the ro_proxy, so let's just not
cache it.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/pager.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c index 105dc93d..baf2d4b7 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -1338,11 +1338,7 @@ diskfs_get_filemap (struct node *node, vm_prot_t prot) if (prot & VM_PROT_WRITE) right = ports_get_send_right (pager); else - { - right = pager_get_ro_port (pager); - mach_port_mod_refs (mach_task_self (), right, - MACH_PORT_RIGHT_SEND, +1); - } + right = pager_create_ro_port (pager); ports_port_deref (pager); |