Skip to content

Commit af64237

Browse files
rppttorvalds
authored andcommitted
mm/secretmem: wire up ->set_page_dirty
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>
1 parent 593311e commit af64237

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mm/secretmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ static void secretmem_freepage(struct page *page)
152152
}
153153

154154
const struct address_space_operations secretmem_aops = {
155+
.set_page_dirty = __set_page_dirty_no_writeback,
155156
.freepage = secretmem_freepage,
156157
.migratepage = secretmem_migratepage,
157158
.isolate_page = secretmem_isolate_page,

0 commit comments

Comments
 (0)