lkml.org 
[lkml]   [2015]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] mm-move-mremap-from-file_operations-to-vm_operations_struct-fix
On 07/21, Benjamin LaHaise wrote:
>
> On Tue, Jul 21, 2015 at 05:29:03PM +0200, Oleg Nesterov wrote:
> >
> > static const struct vm_operations_struct aio_ring_vm_ops = {
> > .mremap = aio_ring_mremap,
> > +#ifdef CONFIG_MMU
> > .fault = filemap_fault,
> > .map_pages = filemap_map_pages,
> > .page_mkwrite = filemap_page_mkwrite,
> > +#endif
> > };
>
> One nit: using #if IS_ENABLED(CONFIG_MMU) is recommended these days not
> #ifdef CONFIG_MMU.

OK, this matches IS_ENABLED(CONFIG_MIGRATION). I am sending v3.

Oleg.



\
 
 \ /
  Last update: 2015-07-21 18:41    [W:1.777 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site