MADV_COLLAPSE support?
Posted Apr 10, 2026 14:37 UTC (Fri) by corbet (editor, #1)In reply to: MADV_COLLAPSE support? by andresfreund
Parent article: Removing read-only transparent huge pages for the page cache
I don't have time to dig in to verify it now but ... the patch series itself essentially replaces CONFIG_READ_ONLY_THP_FOR_FS checks with "can the filesystem do PMD-size folios?" checks. So I am guessing that MADV_COLLAPSE should work as expected.






















