Commit | Line | Data |
---|---|---|
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 | ||
9 | struct address_space *page_mapping(struct page *page) | |
10 | { | |
11 | return folio_mapping(page_folio(page)); | |
12 | } | |
13 | EXPORT_SYMBOL(page_mapping); | |
4e136428 MWO |
14 | |
15 | void unlock_page(struct page *page) | |
16 | { | |
17 | return folio_unlock(page_folio(page)); | |
18 | } | |
19 | EXPORT_SYMBOL(unlock_page); | |
4268b480 MWO |
20 | |
21 | void end_page_writeback(struct page *page) | |
22 | { | |
23 | return folio_end_writeback(page_folio(page)); | |
24 | } | |
25 | EXPORT_SYMBOL(end_page_writeback); | |
490e016f MWO |
26 | |
27 | void wait_on_page_writeback(struct page *page) | |
28 | { | |
29 | return folio_wait_writeback(page_folio(page)); | |
30 | } | |
31 | EXPORT_SYMBOL_GPL(wait_on_page_writeback); |