Skip to content

Commit eca6638

Browse files
author
Matthew Wilcox (Oracle)
committed
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>
1 parent 31c0b4a commit eca6638

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

fs/ocfs2/aops.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ static sector_t ocfs2_bmap(struct address_space *mapping, sector_t block)
498498
return status;
499499
}
500500

501-
static int ocfs2_releasepage(struct page *page, gfp_t wait)
501+
static bool ocfs2_release_folio(struct folio *folio, gfp_t wait)
502502
{
503-
if (!page_has_buffers(page))
504-
return 0;
505-
return try_to_free_buffers(page);
503+
if (!folio_buffers(folio))
504+
return false;
505+
return try_to_free_buffers(&folio->page);
506506
}
507507

508508
static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb,
@@ -2463,7 +2463,7 @@ const struct address_space_operations ocfs2_aops = {
24632463
.bmap = ocfs2_bmap,
24642464
.direct_IO = ocfs2_direct_IO,
24652465
.invalidate_folio = block_invalidate_folio,
2466-
.releasepage = ocfs2_releasepage,
2466+
.release_folio = ocfs2_release_folio,
24672467
.migratepage = buffer_migrate_page,
24682468
.is_partially_uptodate = block_is_partially_uptodate,
24692469
.error_remove_page = generic_error_remove_page,

0 commit comments

Comments
 (0)