Skip to content

Commit c78ac80

Browse files
author
Matthew Wilcox (Oracle)
committed
orangefs: Convert to free_folio
I suspect this isn't actually needed and that releasepage will have done the job, but convert it for now and we can delete it later. Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
1 parent d2329aa commit c78ac80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/orangefs/inode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,9 @@ static bool orangefs_release_folio(struct folio *folio, gfp_t foo)
490490
return !folio_test_private(folio);
491491
}
492492

493-
static void orangefs_freepage(struct page *page)
493+
static void orangefs_free_folio(struct folio *folio)
494494
{
495-
kfree(detach_page_private(page));
495+
kfree(folio_detach_private(folio));
496496
}
497497

498498
static int orangefs_launder_folio(struct folio *folio)
@@ -637,7 +637,7 @@ static const struct address_space_operations orangefs_address_operations = {
637637
.write_end = orangefs_write_end,
638638
.invalidate_folio = orangefs_invalidate_folio,
639639
.release_folio = orangefs_release_folio,
640-
.freepage = orangefs_freepage,
640+
.free_folio = orangefs_free_folio,
641641
.launder_folio = orangefs_launder_folio,
642642
.direct_IO = orangefs_direct_IO,
643643
};

0 commit comments

Comments
 (0)