blob: 91b3d00a92f7441095efaeb37c822f1ddc13cb2c [file] [log] [blame]
Matthew Wilcox (Oracle)2f525782020-12-10 10:55:05 -05001/*
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);
Matthew Wilcox (Oracle)4e136422020-12-07 15:44:35 -050014
15void unlock_page(struct page *page)
16{
17 return folio_unlock(page_folio(page));
18}
19EXPORT_SYMBOL(unlock_page);