diff options
author | 2023-05-27 20:34:39 +0800 | |
---|---|---|
committer | 2023-06-09 17:44:24 -0700 | |
commit | 16c6006af4d4e70ecef93977a5314409d931020b (patch) | |
tree | 4182c557fd6206930f5c58f328d56dc124bd67d4 /fs/crypto/keyring.c | |
parent | kexec: add helper __crash_shrink_memory() (diff) | |
download | linux-16c6006af4d4e70ecef93977a5314409d931020b.tar.gz linux-16c6006af4d4e70ecef93977a5314409d931020b.tar.bz2 linux-16c6006af4d4e70ecef93977a5314409d931020b.zip |
kexec: enable kexec_crash_size to support two crash kernel regions
The crashk_low_res should be considered by /sys/kernel/kexec_crash_size
to support two crash kernel regions shrinking if existing.
While doing it, crashk_low_res will only be shrunk when the entire
crashk_res is empty; and if the crashk_res is empty and crahk_low_res
is not, change crashk_low_res to be crashk_res.
[bhe@redhat.com: redo changelog]
Link: https://lkml.kernel.org/r/20230527123439.772-7-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>
Diffstat (limited to 'fs/crypto/keyring.c')
0 files changed, 0 insertions, 0 deletions