aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2020-12-10 15:42:20 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2020-12-16 18:03:05 +1100
commitb4f026989604b35fdc0b38d676da5e9a2c26718d (patch)
tree240a59910ab21deebbcc0523ff660e42283b8186
parent0db8bd8944717b5b3427a11024e990cc6145935f (diff)
downloadlinux-b4f026989604b35fdc0b38d676da5e9a2c26718d.tar.gz
set_memory-allow-set_direct_map__noflush-for-multiple-pages-fix
fix kernel/power/snapshot.c Cc: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--kernel/power/snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 81636c1f3b11..64b7aab9aee4 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -99,7 +99,7 @@ static inline void hibernate_unmap_page(struct page *page)
{
if (IS_ENABLED(CONFIG_ARCH_HAS_SET_DIRECT_MAP)) {
unsigned long addr = (unsigned long)page_address(page);
- int ret = set_direct_map_invalid_noflush(page);
+ int ret = set_direct_map_invalid_noflush(page, 1);
if (ret)
pr_warn_once("Failed to remap page\n");