@@ -132,5 +132,17 @@ static inline unsigned long _page_file_offset(struct page *page,
return page->index << PAGE_SHIFT;
}
+/*
+ * fs_page_mapping_get_with_bh() - page mapping knowing buffer_head
+ * @page: page struct pointer for which we want the mapping
+ * @bh: buffer_head associated with the page for the mapping
+ * Returns: page mapping for the given buffer head
+ */
+static inline struct address_space *fs_page_mapping_get_with_bh(
+ struct page *page, struct buffer_head *bh)
+{
+ return page_mapping(page);
+}
+
#endif /* MM_PAGE_H */
#endif /* DOT_NOT_INCLUDE___INSIDE_MM */