mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ocfs2: Convert to release_folio
Use folios throughout the release_folio path. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jeff Layton <jlayton@kernel.org>
This commit is contained in:
parent
31c0b4afb9
commit
eca6638974
1 changed files with 5 additions and 5 deletions
|
@ -498,11 +498,11 @@ bail:
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ocfs2_releasepage(struct page *page, gfp_t wait)
|
static bool ocfs2_release_folio(struct folio *folio, gfp_t wait)
|
||||||
{
|
{
|
||||||
if (!page_has_buffers(page))
|
if (!folio_buffers(folio))
|
||||||
return 0;
|
return false;
|
||||||
return try_to_free_buffers(page);
|
return try_to_free_buffers(&folio->page);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb,
|
static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb,
|
||||||
|
@ -2463,7 +2463,7 @@ const struct address_space_operations ocfs2_aops = {
|
||||||
.bmap = ocfs2_bmap,
|
.bmap = ocfs2_bmap,
|
||||||
.direct_IO = ocfs2_direct_IO,
|
.direct_IO = ocfs2_direct_IO,
|
||||||
.invalidate_folio = block_invalidate_folio,
|
.invalidate_folio = block_invalidate_folio,
|
||||||
.releasepage = ocfs2_releasepage,
|
.release_folio = ocfs2_release_folio,
|
||||||
.migratepage = buffer_migrate_page,
|
.migratepage = buffer_migrate_page,
|
||||||
.is_partially_uptodate = block_is_partially_uptodate,
|
.is_partially_uptodate = block_is_partially_uptodate,
|
||||||
.error_remove_page = generic_error_remove_page,
|
.error_remove_page = generic_error_remove_page,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue