blob: 7044fcc8a8aa82729fec2e128f6e61dc1051f2e1 [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);
Matthew Wilcox (Oracle)4268b482021-03-03 15:21:55 -050020
21void end_page_writeback(struct page *page)
22{
23 return folio_end_writeback(page_folio(page));
24}
25EXPORT_SYMBOL(end_page_writeback);
Matthew Wilcox (Oracle)490e0162021-03-04 11:09:17 -050026
27void wait_on_page_writeback(struct page *page)
28{
29 return folio_wait_writeback(page_folio(page));
30}
31EXPORT_SYMBOL_GPL(wait_on_page_writeback);
Matthew Wilcox (Oracle)a49d0c52021-03-04 11:25:25 -050032
33void wait_for_stable_page(struct page *page)
34{
35 return folio_wait_stable(page_folio(page));
36}
37EXPORT_SYMBOL_GPL(wait_for_stable_page);
Matthew Wilcox (Oracle)dd10ab02021-04-12 16:45:17 -040038
39bool page_mapped(struct page *page)
40{
41 return folio_mapped(page_folio(page));
42}
43EXPORT_SYMBOL(page_mapped);