Skip to content

Commit

Permalink
mm/secretmem: wire up ->set_page_dirty
Browse files Browse the repository at this point in the history
Make secretmem up to date with the changes done in commit 0af5737
("mm: require ->set_page_dirty to be explicitly wired up") so that
unconditional call to this method won't cause crashes.

Link: https://lkml.kernel.org/r/20210716063933.31633-1-rppt@kernel.org
Fixes: 0af5737 ("mm: require ->set_page_dirty to be explicitly wired up")
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mike Rapoport authored and Linus Torvalds committed Jul 24, 2021
1 parent 593311e commit af64237
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/secretmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ static void secretmem_freepage(struct page *page)
}

const struct address_space_operations secretmem_aops = {
.set_page_dirty = __set_page_dirty_no_writeback,
.freepage = secretmem_freepage,
.migratepage = secretmem_migratepage,
.isolate_page = secretmem_isolate_page,
Expand Down

0 comments on commit af64237

Please sign in to comment.