Re: [KJ PATCH] Replacing memset(<addr>,0,PAGE_SIZE) with clear_page()in mm/memory.c

From: Andy Whitcroft
Date: Tue May 08 2007 - 07:19:11 EST


Shani Moideen wrote:
> Hi,
>
> Replacing memset(<addr>,0,PAGE_SIZE) with clear_page() in mm/memory.c.
>
> Signed-off-by: Shani Moideen <shani.moideen@xxxxxxxxx>
> ----
>
> thanks.
>
>
> diff --git a/mm/memory.c b/mm/memory.c
> index e7066e7..2780d07 100644
> --- a/mm/memory.c
> +++ b/mm/memory.c
> @@ -1505,7 +1505,7 @@ static inline void cow_user_page(struct page *dst, struct page *src, unsigned lo
> * zeroes.
> */
> if (__copy_from_user_inatomic(kaddr, uaddr, PAGE_SIZE))
> - memset(kaddr, 0, PAGE_SIZE);
> + clear_page(kaddr);
> kunmap_atomic(kaddr, KM_USER0);
> flush_dcache_page(dst);
> return;
>
>

This looks to be whitespace dammaged?

-apw

use tabs not spaces
PATCH: -:64:
FILE: b/mm/memory.c:1508:
+ clear_page(kaddr);$

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/