mm/util: Add folio_mapping() and folio_file_mapping()
[linux-block.git] / mm / folio-compat.c
CommitLineData
2f52578f
MWO
1/*
2 * Compatibility functions which bloat the callers too much to make inline.
3 * All of the callers of these functions should be converted to use folios
4 * eventually.
5 */
6
7#include <linux/pagemap.h>
8
9struct address_space *page_mapping(struct page *page)
10{
11 return folio_mapping(page_folio(page));
12}
13EXPORT_SYMBOL(page_mapping);