12f52578fSMatthew Wilcox (Oracle) /* 22f52578fSMatthew Wilcox (Oracle) * Compatibility functions which bloat the callers too much to make inline. 32f52578fSMatthew Wilcox (Oracle) * All of the callers of these functions should be converted to use folios 42f52578fSMatthew Wilcox (Oracle) * eventually. 52f52578fSMatthew Wilcox (Oracle) */ 62f52578fSMatthew Wilcox (Oracle) 72f52578fSMatthew Wilcox (Oracle) #include <linux/pagemap.h> 82f52578fSMatthew Wilcox (Oracle) 92f52578fSMatthew Wilcox (Oracle) struct address_space *page_mapping(struct page *page) 102f52578fSMatthew Wilcox (Oracle) { 112f52578fSMatthew Wilcox (Oracle) return folio_mapping(page_folio(page)); 122f52578fSMatthew Wilcox (Oracle) } 132f52578fSMatthew Wilcox (Oracle) EXPORT_SYMBOL(page_mapping); 144e136428SMatthew Wilcox (Oracle) 154e136428SMatthew Wilcox (Oracle) void unlock_page(struct page *page) 164e136428SMatthew Wilcox (Oracle) { 174e136428SMatthew Wilcox (Oracle) return folio_unlock(page_folio(page)); 184e136428SMatthew Wilcox (Oracle) } 194e136428SMatthew Wilcox (Oracle) EXPORT_SYMBOL(unlock_page); 20*4268b480SMatthew Wilcox (Oracle) 21*4268b480SMatthew Wilcox (Oracle) void end_page_writeback(struct page *page) 22*4268b480SMatthew Wilcox (Oracle) { 23*4268b480SMatthew Wilcox (Oracle) return folio_end_writeback(page_folio(page)); 24*4268b480SMatthew Wilcox (Oracle) } 25*4268b480SMatthew Wilcox (Oracle) EXPORT_SYMBOL(end_page_writeback); 26