diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-25 08:21:52 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-25 10:20:03 +0100 |
commit | 3255aa2eb636a508fc82a73fabbb8aaf2ff23c0f (patch) | |
tree | 2a602fb8f4fefe666e8daedf1e1f755800bd700a /arch/x86/include/asm/uaccess_64.h | |
parent | 95f66b3770d6d0755b4a2d818c237574ffd74e4c (diff) | |
download | kernel_samsung_tuna-3255aa2eb636a508fc82a73fabbb8aaf2ff23c0f.zip kernel_samsung_tuna-3255aa2eb636a508fc82a73fabbb8aaf2ff23c0f.tar.gz kernel_samsung_tuna-3255aa2eb636a508fc82a73fabbb8aaf2ff23c0f.tar.bz2 |
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>
Diffstat (limited to 'arch/x86/include/asm/uaccess_64.h')
-rw-r--r-- | arch/x86/include/asm/uaccess_64.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uaccess_64.h index 987a2c1..a748253 100644 --- a/arch/x86/include/asm/uaccess_64.h +++ b/arch/x86/include/asm/uaccess_64.h @@ -189,7 +189,7 @@ extern long __copy_user_nocache(void *dst, const void __user *src, unsigned size, int zerorest); static inline int __copy_from_user_nocache(void *dst, const void __user *src, - unsigned size) + unsigned size, unsigned long total) { might_sleep(); /* @@ -205,8 +205,7 @@ static inline int __copy_from_user_nocache(void *dst, const void __user *src, } static inline int __copy_from_user_inatomic_nocache(void *dst, - const void __user *src, - unsigned size) + const void __user *src, unsigned size, unsigned total) { if (likely(size >= PAGE_SIZE)) return __copy_user_nocache(dst, src, size, 0); |