]> git.baikalelectronics.ru Git - kernel.git/commitdiff
secretmem: Remove isolate_page
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 7 Jun 2022 19:37:50 +0000 (15:37 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Aug 2022 16:34:03 +0000 (12:34 -0400)
The isolate_page operation is never called for filesystems, only
for device drivers which call SetPageMovable.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
mm/secretmem.c

index 206ed6b40c1d0fcfbb6abcbced65581c647c1892..1c7f1775b56e7fdfafb4bc2318400b4be63255b7 100644 (file)
@@ -133,11 +133,6 @@ static const struct file_operations secretmem_fops = {
        .mmap           = secretmem_mmap,
 };
 
-static bool secretmem_isolate_page(struct page *page, isolate_mode_t mode)
-{
-       return false;
-}
-
 static int secretmem_migratepage(struct address_space *mapping,
                                 struct page *newpage, struct page *page,
                                 enum migrate_mode mode)
@@ -155,7 +150,6 @@ const struct address_space_operations secretmem_aops = {
        .dirty_folio    = noop_dirty_folio,
        .free_folio     = secretmem_free_folio,
        .migratepage    = secretmem_migratepage,
-       .isolate_page   = secretmem_isolate_page,
 };
 
 static int secretmem_setattr(struct user_namespace *mnt_userns,