提交 bb8e283a 编写于 作者: M Matthew Wilcox (Oracle)

jfs: Convert metadata pages to read_folio

This is a "weak" conversion which converts straight back to using pages.
A full conversion should be performed at some point, hopefully by
someone familiar with the filesystem.
Signed-off-by: NMatthew Wilcox (Oracle) <willy@infradead.org>
上级 75a47803
...@@ -467,8 +467,9 @@ static int metapage_writepage(struct page *page, struct writeback_control *wbc) ...@@ -467,8 +467,9 @@ static int metapage_writepage(struct page *page, struct writeback_control *wbc)
return -EIO; return -EIO;
} }
static int metapage_readpage(struct file *fp, struct page *page) static int metapage_read_folio(struct file *fp, struct folio *folio)
{ {
struct page *page = &folio->page;
struct inode *inode = page->mapping->host; struct inode *inode = page->mapping->host;
struct bio *bio = NULL; struct bio *bio = NULL;
int block_offset; int block_offset;
...@@ -563,7 +564,7 @@ static void metapage_invalidate_folio(struct folio *folio, size_t offset, ...@@ -563,7 +564,7 @@ static void metapage_invalidate_folio(struct folio *folio, size_t offset,
} }
const struct address_space_operations jfs_metapage_aops = { const struct address_space_operations jfs_metapage_aops = {
.readpage = metapage_readpage, .read_folio = metapage_read_folio,
.writepage = metapage_writepage, .writepage = metapage_writepage,
.releasepage = metapage_releasepage, .releasepage = metapage_releasepage,
.invalidate_folio = metapage_invalidate_folio, .invalidate_folio = metapage_invalidate_folio,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册