powerpc/mm: move warning from resize_hpt_for_hotplug()
resize_hpt_for_hotplug() reports a warning when it cannot resize the hash page table ("Unable to resize hash page table to target order") but in some cases it's not a problem and can make user thinks something has not worked properly. This patch moves the warning to arch_remove_memory() to only report the problem when it is needed. Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Este cometimento está contido em:

cometido por
Michael Ellerman

ascendente
f89bd8ba83
cometimento
f172acbfae
@@ -901,8 +901,10 @@ static int pseries_lpar_resize_hpt(unsigned long shift)
|
||||
break;
|
||||
|
||||
case H_PARAMETER:
|
||||
pr_warn("Invalid argument from H_RESIZE_HPT_PREPARE\n");
|
||||
return -EINVAL;
|
||||
case H_RESOURCE:
|
||||
pr_warn("Operation not permitted from H_RESIZE_HPT_PREPARE\n");
|
||||
return -EPERM;
|
||||
default:
|
||||
pr_warn("Unexpected error %d from H_RESIZE_HPT_PREPARE\n", rc);
|
||||
@@ -918,7 +920,6 @@ static int pseries_lpar_resize_hpt(unsigned long shift)
|
||||
if (rc != 0) {
|
||||
switch (state.commit_rc) {
|
||||
case H_PTEG_FULL:
|
||||
pr_warn("Hash collision while resizing HPT\n");
|
||||
return -ENOSPC;
|
||||
|
||||
default:
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador