kexec: add helper __crash_shrink_memory()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 27 May 2023 12:34:38 +0000 (20:34 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 10 Jun 2023 00:44:24 +0000 (17:44 -0700)
commit5b7bfb32cbaad6ba997ab4295ee50bc9921252f2
tree43f4485e0b26c5ccfabe4afe0cd3161dbfa30fd4
parent8a7db7790a3ff8413bedef886cf135ba301e88d7
kexec: add helper __crash_shrink_memory()

No functional change, in preparation for the next patch so that it is
easier to review.

[akpm@linux-foundation.org: make  __crash_shrink_memory() static]
Link: https://lore.kernel.org/oe-kbuild-all/202305280717.Pw06aLkz-lkp@intel.com/
Link: https://lkml.kernel.org/r/20230527123439.772-6-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Cong Wang <amwang@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/kexec_core.c