> @@ -1281,6 +1292,18 @@ static void update_per_node_mf_stats(unsigned long pfn,
> ++mf_stats->total;
> }
>
> +static bool panic_on_unrecoverable_mf(enum mf_action_page_type type,
> + enum mf_result result)
> +{
> + if (!sysctl_panic_on_unrecoverable_mf || result != MF_IGNORED)
> + return false;
> +
> + if (type == MF_MSG_KERNEL)
> + return true;
> +
> + return false;return type == MF_MSG_KERNEL; might be simpler. -- Cheers, David
