lkml.org 
[lkml]   [2010]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] mm/nommu.c:Dynamic alloc/free percpu area for nommu
Date
<graff.yang@gmail.com> wrote:

> - return virt_to_page(addr);
> + return (struct page *)
> + (virt_to_page(addr)->index) ? : virt_to_page(addr);

Can the extra conditional operator be made subject to CONFIG_SMP?

> - return page_to_pfn(virt_to_page(addr));
> + return page_to_pfn((struct page *)
> + (virt_to_page(addr)->index) ? : virt_to_page(addr));

Ditto.

> +#ifdef CONFIG_SMP
> ...
> +#endif

Can this be put into a separate file? There's rather a lot in mm/nommu.c
these days.

David


\
 
 \ /
  Last update: 2010-03-22 12:53    [W:0.087 / U:5.208 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site