x86, mm: pass in 'total' to __copy_from_user_*nocache()
authorIngo Molnar <mingo@elte.hu>
Wed, 25 Feb 2009 07:21:52 +0000 (08:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 25 Feb 2009 09:20:03 +0000 (10:20 +0100)
commit3255aa2eb636a508fc82a73fabbb8aaf2ff23c0f
tree2a602fb8f4fefe666e8daedf1e1f755800bd700a
parent95f66b3770d6d0755b4a2d818c237574ffd74e4c
x86, mm: pass in 'total' to __copy_from_user_*nocache()

Impact: cleanup, enable future change

Add a 'total bytes copied' parameter to __copy_from_user_*nocache(),
and update all the callsites.

The parameter is not used yet - architecture code can use it to
more intelligently decide whether the copy should be cached or
non-temporal.

Cc: Salman Qazi <sqazi@google.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/uaccess_32.h
arch/x86/include/asm/uaccess_64.h
drivers/gpu/drm/i915/i915_gem.c
include/linux/uaccess.h
mm/filemap.c
mm/filemap_xip.c