/*
 * Compatibility functions which bloat the callers too much to make inline.
 * All of the callers of these functions should be converted to use folios
 * eventually.
 */

/* Extracted unchanged from Linux v6.0, mm/folio-compat.c:85-88.
 * Complete function definition; surrounding kernel context is required.
 * Source: https://github.com/torvalds/linux/blob/v6.0/mm/folio-compat.c#L85
 * License text: GPL-2.0.txt (in this directory).
 */
void lru_cache_add(struct page *page)
{
	folio_add_lru(page_folio(page));
}
