diff mbox series

mm/secretmem: wire up ->set_page_dirty

Message ID 20210716063933.31633-1-rppt@kernel.org (mailing list archive)
State New
Headers show
Series mm/secretmem: wire up ->set_page_dirty | expand

Commit Message

Mike Rapoport July 16, 2021, 6:39 a.m. UTC
From: Mike Rapoport <rppt@linux.ibm.com>

Make secretmem up to date with the changes done in commit 0af573780b0b
("mm: require ->set_page_dirty to be explicitly wired up") so that
unconditional call to this method won't cause crashes.

Fixes: 0af573780b0b ("mm: require ->set_page_dirty to be explicitly wired up")
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
---
 mm/secretmem.c | 1 +
 1 file changed, 1 insertion(+)


base-commit: e73f0f0ee7541171d89f2e2491130c7771ba58d3

Comments

David Hildenbrand July 16, 2021, 10:05 a.m. UTC | #1
On 16.07.21 08:39, Mike Rapoport wrote:
> From: Mike Rapoport <rppt@linux.ibm.com>
> 
> Make secretmem up to date with the changes done in commit 0af573780b0b
> ("mm: require ->set_page_dirty to be explicitly wired up") so that
> unconditional call to this method won't cause crashes.
> 
> Fixes: 0af573780b0b ("mm: require ->set_page_dirty to be explicitly wired up")
> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
> ---
>   mm/secretmem.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/mm/secretmem.c b/mm/secretmem.c
> index f77d25467a14..030f02ddc7c1 100644
> --- a/mm/secretmem.c
> +++ b/mm/secretmem.c
> @@ -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,
> 
> base-commit: e73f0f0ee7541171d89f2e2491130c7771ba58d3
> 

Reviewed-by: David Hildenbrand <david@redhat.com>
diff mbox series

Patch

diff --git a/mm/secretmem.c b/mm/secretmem.c
index f77d25467a14..030f02ddc7c1 100644
--- a/mm/secretmem.c
+++ b/mm/secretmem.c
@@ -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,