On 04/10/2017 01:03 PM, Michal Hocko wrote: > From: Michal Hocko <[email protected]> > > c04fc586c1a4 ("mm: show node to memory section relationship with > symlinks in sysfs") has added means to export memblock<->node > association into the sysfs. It has also introduced get_nid_for_pfn > which is a rather confusing counterpart of pfn_to_nid which checks also > whether the pfn page is already initialized (page_initialized). This > is done by checking page::lru != NULL which doesn't make any sense at > all. Nothing in this path really relies on the lru list being used or > initialized. Just remove it because this will become a problem with > later patches. > > Thanks to Reza Arbab for testing which revealed this to be a problem > (http://lkml.kernel.org/r/[email protected]) > > Signed-off-by: Michal Hocko <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>

