Skip to content

Commit

Permalink
jfs: Convert metadata pages to read_folio
Browse files Browse the repository at this point in the history
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: Matthew Wilcox (Oracle) <[email protected]>
  • Loading branch information
Matthew Wilcox (Oracle) committed May 9, 2022
1 parent 75a4780 commit bb8e283
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/jfs/jfs_metapage.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,9 @@ static int metapage_writepage(struct page *page, struct writeback_control *wbc)
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 bio *bio = NULL;
int block_offset;
Expand Down Expand Up @@ -563,7 +564,7 @@ static void metapage_invalidate_folio(struct folio *folio, size_t offset,
}

const struct address_space_operations jfs_metapage_aops = {
.readpage = metapage_readpage,
.read_folio = metapage_read_folio,
.writepage = metapage_writepage,
.releasepage = metapage_releasepage,
.invalidate_folio = metapage_invalidate_folio,
Expand Down

0 comments on commit bb8e283

Please sign in to comment.