1
0
Fork 0
alistair23-linux/drivers/staging/android
WANG Chao f6f8ed4735 mm/vmalloc.c: clean up map_vm_area third argument
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 to avoid this by passing another copy to map_vm_area().

The caller can always guarantee all the pages can be mapped into vm_area
as specified in first argument and the caller only cares about whether
map_vm_area() fails or not.

This patch cleans up the pointer movement in map_vm_area() and updates
its callers accordingly.

Signed-off-by: WANG Chao <chaowang@redhat.com>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-08-06 18:01:19 -07:00
..
ion Staging driver patches for 3.17-rc1 2014-08-04 18:36:12 -07:00
trace android: convert sync to fence api, v6 2014-07-08 13:28:26 -07:00
uapi staging: android: uapi: fix coding style 2014-04-16 20:17:31 -07:00
Kconfig Staging driver patches for 3.17-rc1 2014-08-04 18:36:12 -07:00
Makefile android: convert sync to fence api, v6 2014-07-08 13:28:26 -07:00
TODO
alarm-dev.c staging: alarm-dev: Set the license to GPL 2014-06-20 08:28:01 -07:00
android_alarm.h staging: android: Split uapi out of android_alarm.h 2014-02-18 11:03:28 -08:00
ashmem.c
ashmem.h staging: android: Split uapi out of ashmem.h 2014-02-18 11:03:28 -08:00
binder.c mm/vmalloc.c: clean up map_vm_area third argument 2014-08-06 18:01:19 -07:00
binder.h staging: binder: Support concurrent 32 bit and 64 bit processes. 2014-02-24 16:29:40 -08:00
binder_trace.h staging: binder: Support concurrent 32 bit and 64 bit processes. 2014-02-24 16:29:40 -08:00
logger.c staging: android: logger: fixed checkpatch.pl warnings. 2014-07-08 15:42:19 -07:00
logger.h
lowmemorykiller.c staging: android: lowmemorykiller: neglect swap cached pages in other_file 2014-02-27 14:51:27 -08:00
sw_sync.c android: convert sync to fence api, v6 2014-07-08 13:28:26 -07:00
sw_sync.h staging: android: split uapi out of sync.h and sw_sync.h 2014-02-18 11:03:28 -08:00
sync.c Staging driver patches for 3.17-rc1 2014-08-04 18:36:12 -07:00
sync.h android: convert sync to fence api, v6 2014-07-08 13:28:26 -07:00
sync_debug.c staging: android: Cleanup style issues 2014-07-12 13:24:19 -07:00
timed_gpio.c Staging: android: timed_gpio.c: improved logic of gpio_get_time() 2014-08-01 14:40:30 -07:00
timed_gpio.h
timed_output.c Staging: android: timed_output.c: use kstrtoint() instead of sscanf() 2014-07-30 17:17:02 -07:00
timed_output.h staging: android: timed_output: fix a checkpatch warning 2014-02-11 12:27:30 -08:00