secretmem: Convert to free_folio
Prepare for any size of folio, even though secretmem only uses order-0 folios for now. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
This commit is contained in:
parent
aa5dc8c461
commit
6612ed24a2
|
@ -145,15 +145,15 @@ static int secretmem_migratepage(struct address_space *mapping,
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void secretmem_freepage(struct page *page)
|
static void secretmem_free_folio(struct folio *folio)
|
||||||
{
|
{
|
||||||
set_direct_map_default_noflush(page);
|
set_direct_map_default_noflush(&folio->page);
|
||||||
clear_highpage(page);
|
folio_zero_segment(folio, 0, folio_size(folio));
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct address_space_operations secretmem_aops = {
|
const struct address_space_operations secretmem_aops = {
|
||||||
.dirty_folio = noop_dirty_folio,
|
.dirty_folio = noop_dirty_folio,
|
||||||
.freepage = secretmem_freepage,
|
.free_folio = secretmem_free_folio,
|
||||||
.migratepage = secretmem_migratepage,
|
.migratepage = secretmem_migratepage,
|
||||||
.isolate_page = secretmem_isolate_page,
|
.isolate_page = secretmem_isolate_page,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue