Re: [PATCH v2] mm/vmalloc.c: clean up map_vm_area third argument

2014-07-09 Thread Greg Kroah-Hartman
On Thu, Jul 10, 2014 at 12:26:07PM +0800, WANG Chao wrote: > Currently map_vm_area() takes (struct page *** pages) as third argument, > and after mapping, it moves (*pages) to point to (*pages + nr_mappped_pages). > > It looks like this kind of increment is useless to its caller these > days. The

[PATCH v2] mm/vmalloc.c: clean up map_vm_area third argument

2014-07-09 Thread WANG Chao
Currently map_vm_area() takes (struct page *** pages) as third argument, and after mapping, it moves (*pages) to point to (*pages + nr_mappped_pages). It looks like this kind of increment is useless to its caller these days. The callers don't care about the increments and actually they're trying t