On Wed, Jul 09, Vitaly Kuznetsov wrote: > > Also I am wondering why it was not done as part of copy_oldmem_page() > > so that respective arch could hide all the details. > Afaiac that wouldn't solve the mmap issue I'm trying to address but we > can ask Olaf why he preferred pfn_is_ram() path.
Every copy_oldmem_page would need to know about the pfn_is_ram function, so I think its better to keep that part of the code private to fs/proc/vmcore.c Perhaps pfn_is_ram could be named pfn_is_backed_by_ram, but the comments make it clear what the function does. Olaf -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

