提交 c78ac80e 编写于 作者: M Matthew Wilcox (Oracle)

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: NMatthew Wilcox (Oracle) <willy@infradead.org>
上级 d2329aa0
...@@ -490,9 +490,9 @@ static bool orangefs_release_folio(struct folio *folio, gfp_t foo) ...@@ -490,9 +490,9 @@ static bool orangefs_release_folio(struct folio *folio, gfp_t foo)
return !folio_test_private(folio); return !folio_test_private(folio);
} }
static void orangefs_freepage(struct page *page) static void orangefs_free_folio(struct folio *folio)
{ {
kfree(detach_page_private(page)); kfree(folio_detach_private(folio));
} }
static int orangefs_launder_folio(struct folio *folio) static int orangefs_launder_folio(struct folio *folio)
...@@ -637,7 +637,7 @@ static const struct address_space_operations orangefs_address_operations = { ...@@ -637,7 +637,7 @@ static const struct address_space_operations orangefs_address_operations = {
.write_end = orangefs_write_end, .write_end = orangefs_write_end,
.invalidate_folio = orangefs_invalidate_folio, .invalidate_folio = orangefs_invalidate_folio,
.release_folio = orangefs_release_folio, .release_folio = orangefs_release_folio,
.freepage = orangefs_freepage, .free_folio = orangefs_free_folio,
.launder_folio = orangefs_launder_folio, .launder_folio = orangefs_launder_folio,
.direct_IO = orangefs_direct_IO, .direct_IO = orangefs_direct_IO,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册