On Thu, Dec 23, 2021 at 08:36:45AM +0100, Christoph Hellwig wrote: > On Wed, Dec 08, 2021 at 04:22:41AM +0000, Matthew Wilcox (Oracle) wrote: > > Convert both callers of unmap_mapping_page() to call unmap_mapping_folio() > > instead. Also move zap_details from linux/mm.h to mm/internal.h > > In fact it could even move to mm/memory.c as no one needs it outside of > that file. __oom_reap_task_mm always passes a NULL zap_details argument > to unmap_page_range. Umm ... no? static inline bool zap_skip_check_mapping(struct zap_details *details, struct page *page) { if (!details || !page) return false; return details->zap_mapping && (details->zap_mapping != page_rmapping(page)); }