Lines Matching defs:folio
119 * folio_slab - Converts from folio to slab.
120 * @folio: The folio.
122 * Currently struct slab is a different representation of a folio where
125 * Return: The slab which contains this folio.
127 #define folio_slab(folio) (_Generic((folio), \
128 const struct folio *: (const struct slab *)(folio), \
129 struct folio *: (struct slab *)(folio)))
132 * slab_folio - The folio allocated for a slab
136 * using some fields in the first struct page of the folio - those fields are
138 * a folio in order to communicate with the rest of the mm. Please use this
143 const struct slab *: (const struct folio *)s, \
144 struct slab *: (struct folio *)s))
154 * through folio to struct slab.
167 * underlying folio, to communicate with code not yet converted to folio or
178 return folio_test_active((struct folio *)slab_folio(slab));
213 struct folio *folio = virt_to_folio(addr);
215 if (!folio_test_slab(folio))
218 return folio_slab(folio);
223 return folio_order((struct folio *)slab_folio(slab));
668 void free_large_kmalloc(struct folio *folio, void *object);