[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <46405C92.1080003@shadowen.org>
Date: Tue, 08 May 2007 12:18:42 +0100
From: Andy Whitcroft <apw@...dowen.org>
To: Shani Moideen <shani.moideen@...ro.com>
CC: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
kernel-janitors@...ts.osdl.org
Subject: Re: [KJ PATCH] Replacing memset(<addr>,0,PAGE_SIZE) with clear_page()
in mm/memory.c
Shani Moideen wrote:
> Hi,
>
> Replacing memset(<addr>,0,PAGE_SIZE) with clear_page() in mm/memory.c.
>
> Signed-off-by: Shani Moideen <shani.moideen@...ro.com>
> ----
>
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists