Re: [PATCH v3 3/5] kernel/power: allow hibernation with page_poison sanity checking

From: David Hildenbrand
Date: Fri Nov 13 2020 - 07:17:34 EST


On 13.11.20 13:15, Vlastimil Babka wrote:
On 11/13/20 1:10 PM, David Hildenbrand wrote:
@@ -1186,12 +1194,12 @@ void clear_free_pages(void)
if (WARN_ON(!(free_pages_map)))
return;
- if (IS_ENABLED(CONFIG_PAGE_POISONING_ZERO) || want_init_on_free()) {
+ if (page_poisoning_enabled() || want_init_on_free()) {

Any reason why not to use the static version here?

It's a single check per resume, so not worth live-patching this place.

Agreed, thanks.


--
Thanks,

David / dhildenb