mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
jfs: Convert from invalidatepage to invalidate_folio
This is a straightforward conversion. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs Tested-by: David Howells <dhowells@redhat.com> # afs
This commit is contained in:
parent
5f4b297684
commit
c5b56b50d7
1 changed files with 6 additions and 6 deletions
|
@ -555,21 +555,21 @@ static int metapage_releasepage(struct page *page, gfp_t gfp_mask)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void metapage_invalidatepage(struct page *page, unsigned int offset,
|
||||
unsigned int length)
|
||||
static void metapage_invalidate_folio(struct folio *folio, size_t offset,
|
||||
size_t length)
|
||||
{
|
||||
BUG_ON(offset || length < PAGE_SIZE);
|
||||
BUG_ON(offset || length < folio_size(folio));
|
||||
|
||||
BUG_ON(PageWriteback(page));
|
||||
BUG_ON(folio_test_writeback(folio));
|
||||
|
||||
metapage_releasepage(page, 0);
|
||||
metapage_releasepage(&folio->page, 0);
|
||||
}
|
||||
|
||||
const struct address_space_operations jfs_metapage_aops = {
|
||||
.readpage = metapage_readpage,
|
||||
.writepage = metapage_writepage,
|
||||
.releasepage = metapage_releasepage,
|
||||
.invalidatepage = metapage_invalidatepage,
|
||||
.invalidate_folio = metapage_invalidate_folio,
|
||||
.set_page_dirty = __set_page_dirty_nobuffers,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue