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 /fatfs | |
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 'fatfs')
-rw-r--r-- | fatfs/pager.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fatfs/pager.c b/fatfs/pager.c index d60c2eca..9a8b8d6c 100644 --- a/fatfs/pager.c +++ b/fatfs/pager.c @@ -861,11 +861,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); |