fs: convert error_remove_page to error_remove_folio
[linux-2.6-block.git] / mm / shmem.c
index 91e2620148b2f6d789420e6736daef7a53e2cc5c..97bc622da77447d00a4fa71a6ca2b68ef7d12b98 100644 (file)
@@ -4445,8 +4445,8 @@ static void __init shmem_destroy_inodecache(void)
 }
 
 /* Keep the page in page cache instead of truncating it */
-static int shmem_error_remove_page(struct address_space *mapping,
-                                  struct page *page)
+static int shmem_error_remove_folio(struct address_space *mapping,
+                                  struct folio *folio)
 {
        return 0;
 }
@@ -4461,7 +4461,7 @@ const struct address_space_operations shmem_aops = {
 #ifdef CONFIG_MIGRATION
        .migrate_folio  = migrate_folio,
 #endif
-       .error_remove_page = shmem_error_remove_page,
+       .error_remove_folio = shmem_error_remove_folio,
 };
 EXPORT_SYMBOL(shmem_aops);