secretmem: Convert to migrate_folio

This is little more than changing the types over; there's no real work
being done in this function.
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent b890ec2a
...@@ -133,9 +133,8 @@ static const struct file_operations secretmem_fops = { ...@@ -133,9 +133,8 @@ static const struct file_operations secretmem_fops = {
.mmap = secretmem_mmap, .mmap = secretmem_mmap,
}; };
static int secretmem_migratepage(struct address_space *mapping, static int secretmem_migrate_folio(struct address_space *mapping,
struct page *newpage, struct page *page, struct folio *dst, struct folio *src, enum migrate_mode mode)
enum migrate_mode mode)
{ {
return -EBUSY; return -EBUSY;
} }
...@@ -149,7 +148,7 @@ static void secretmem_free_folio(struct folio *folio) ...@@ -149,7 +148,7 @@ static void secretmem_free_folio(struct folio *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,
.free_folio = secretmem_free_folio, .free_folio = secretmem_free_folio,
.migratepage = secretmem_migratepage, .migrate_folio = secretmem_migrate_folio,
}; };
static int secretmem_setattr(struct user_namespace *mnt_userns, static int secretmem_setattr(struct user_namespace *mnt_userns,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment