Re: [PATCH v5 1/3] mm: Merge folio_has_private()/filemap_release_folio() call pairs

2023-01-07 Thread Matthew Wilcox
On Thu, Dec 22, 2022 at 03:02:02PM +, David Howells wrote: > Make filemap_release_folio() check folio_has_private(). Then, in most > cases, where a call to folio_has_private() is immediately followed by a > call to filemap_release_folio(), we can get rid of the test in the pair. > > The same

[PATCH v5 1/3] mm: Merge folio_has_private()/filemap_release_folio() call pairs

2022-12-22 Thread David Howells
Make filemap_release_folio() check folio_has_private(). Then, in most cases, where a call to folio_has_private() is immediately followed by a call to filemap_release_folio(), we can get rid of the test in the pair. The same is done to page_has_private()/try_to_release_page() call pairs. There