mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
mm/migrate.c: stop using 0 as NULL pointer
[ Upstream commit 4c74b65f47 ]
mm/migrate.c:1198:24: warning: Using plain integer as NULL pointer
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3080
Link: https://lkml.kernel.org/r/20221116012345.84870-1-yang.lee@linux.alibaba.com
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 35e41024c4c2 ("vmscan,migrate: fix page count imbalance on node stats when demoting pages")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2a4b092d91
commit
de0a1554a4
@@ -1192,7 +1192,7 @@ static int unmap_and_move(new_page_t get_new_page,
|
||||
return -ENOMEM;
|
||||
dst = page_folio(newpage);
|
||||
|
||||
dst->private = 0;
|
||||
dst->private = NULL;
|
||||
rc = __unmap_and_move(src, dst, force, mode);
|
||||
if (rc == MIGRATEPAGE_SUCCESS)
|
||||
set_page_owner_migrate_reason(&dst->page, reason);
|
||||
|
||||
Reference in New Issue
Block a user