On 5/17/26 15:54, Zi Yan wrote:
> collapse_file() now supports collapsing clean pagecache folios from
> writable files, so add corresponding tests.
> 
> Note that madvise(MADV_COLLAPSE) works for dirty pagecache folios from
> writable files, because collapse_single_pmd() triggers a synchronous
> writeback when first attempt of collapse_file() fails.  That writeback
> makes dirty folios clean and the retry of collapse_file() succeeds.
> 
> Signed-off-by: Zi Yan <[email protected]>
> Cc: Al Viro <[email protected]>
> Cc: Baolin Wang <[email protected]>
> Cc: Barry Song <[email protected]>
> Cc: Chris Mason <[email protected]>
> Cc: Christian Brauner <[email protected]>
> Cc: David Hildenbrand (Arm) <[email protected]>
> Cc: David Sterba <[email protected]>
> Cc: Dev Jain <[email protected]>
> Cc: Jan Kara <[email protected]>
> Cc: Lance Yang <[email protected]>
> Cc: Liam Howlett <[email protected]>
> Cc: Lorenzo Stoakes <[email protected]>
> Cc: Matthew Wilcox (Oracle) <[email protected]>
> Cc: Michal Hocko <[email protected]>
> Cc: Mike Rapoport <[email protected]>
> Cc: Nico Pache <[email protected]>
> Cc: Ryan Roberts <[email protected]>
> Cc: Shuah Khan <[email protected]>
> Cc: Song Liu <[email protected]>
> Cc: Suren Baghdasaryan <[email protected]>
> Cc: Vlastimil Babka <[email protected]>
> ---

Acked-by: David Hildenbrand (Arm) <[email protected]>

-- 
Cheers,

David

Reply via email to