search for: folio_trylock

Displaying 2 results from an estimated 2 matches for "folio_trylock".

2022 Jul 08
0
[PATCH v2 07/19] mm/migrate: Convert expected_page_refs() to folio_expected_refs()
...active_list(unsigned long nr_to_scan, > struct lruvec *lruvec, > struct scan_control *sc, > @@ -2538,8 +2542,9 @@ static void shrink_active_list(unsigned > } > > if (unlikely(buffer_heads_over_limit)) { > - if (folio_get_private(folio) && folio_trylock(folio)) { > - if (folio_get_private(folio)) > + if (folio_counted_private(folio) && > + folio_trylock(folio)) { > + if (folio_counted_private(folio)) > filemap_release_folio(folio, 0); > folio_unlock(folio); > }
2022 Jul 08
0
[PATCH v2 07/19] mm/migrate: Convert expected_page_refs() to folio_expected_refs()
...active_list(unsigned long nr_to_scan, > struct lruvec *lruvec, > struct scan_control *sc, > @@ -2538,8 +2542,9 @@ static void shrink_active_list(unsigned > } > > if (unlikely(buffer_heads_over_limit)) { > - if (folio_get_private(folio) && folio_trylock(folio)) { > - if (folio_get_private(folio)) > + if (folio_counted_private(folio) && > + folio_trylock(folio)) { > + if (folio_counted_private(folio)) > filemap_release_folio(folio, 0); > folio_unlock(folio); > }