search for: folio_test_swapcach

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

Did you mean: folio_test_swapcache
2022 Jul 08
0
[PATCH v2 07/19] mm/migrate: Convert expected_page_refs() to folio_expected_refs()
...tomorrow. > Hugh > > --- a/mm/migrate.c 2022-07-06 14:24:44.499941975 -0700 > +++ b/mm/migrate.c 2022-07-06 15:49:25.000000000 -0700 > @@ -351,6 +351,10 @@ unlock: > } > #endif > > +static inline bool folio_counted_private(struct folio *folio) > +{ > + return !folio_test_swapcache(folio) && folio_get_private(folio); > +} > static int folio_expected_refs(struct address_space *mapping, > struct folio *folio) > { > @@ -359,7 +363,7 @@ static int folio_expected_refs(struct ad > return refs; > > refs += folio_nr_pages(folio); > - if...
2022 Jul 08
0
[PATCH v2 07/19] mm/migrate: Convert expected_page_refs() to folio_expected_refs()
...tomorrow. > Hugh > > --- a/mm/migrate.c 2022-07-06 14:24:44.499941975 -0700 > +++ b/mm/migrate.c 2022-07-06 15:49:25.000000000 -0700 > @@ -351,6 +351,10 @@ unlock: > } > #endif > > +static inline bool folio_counted_private(struct folio *folio) > +{ > + return !folio_test_swapcache(folio) && folio_get_private(folio); > +} > static int folio_expected_refs(struct address_space *mapping, > struct folio *folio) > { > @@ -359,7 +363,7 @@ static int folio_expected_refs(struct ad > return refs; > > refs += folio_nr_pages(folio); > - if...