This is the same patch, split into three for readabilty and reviewability. I'm still looking for feedback :)
Instead of removing the munmap from _pager_do_write_request (), document that pager_write_page () is *not* supposed to unmap the page (nor keep references to it), and remove the munmap call from storeio. Sergey Bugaev (4): libpager: pager_write_page () should not unmap page libpager: Store omit_data in an array libpager: Track which pages are precious libpager: Do not throw away precious pages doc/hurd.texi | 6 ++-- libpager/data-return.c | 67 ++++++++++++++++-------------------------- libpager/offer-page.c | 2 ++ libpager/pager.h | 6 ++-- libpager/priv.h | 1 + storeio/pager.c | 8 ++--- tmpfs/pager-stubs.c | 6 ++-- 7 files changed, 41 insertions(+), 55 deletions(-) -- 2.31.1