Messages in this thread | | | Subject | Re: [PATCH v3 3/5] kernel/power: allow hibernation with page_poison sanity checking | From | Vlastimil Babka <> | Date | Fri, 13 Nov 2020 13:15:45 +0100 |
| |
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.
> Reviewed-by: David Hildenbrand <david@redhat.com> > >
| |