On Fri, Apr 04, 2025 at 09:59:40AM -0700, John Hubbard wrote: > > gup_put_folio() seems to only rely on per-folio information (esp. > > node_stat_mod_folio). > > > > So there should not be such a context requirement. > > That is correct. The essence of gup/pup is that it operates on > struct pages, and doesn't have any "moral" connection to higher > layers or additional process context. Hmm, indeed. I misremembered why the block based direct I/O code is doing the process context offload, which is to call set_page_dirty to redirty pages where the dirty bit was cleared during direct I/O. Which I think now that all block based file systems use FOLL_PIN shouldn't be needed anymore, because no one can clear the dirty bit while the folios are pinned?