Re: [PATCH 1/2] fs: use memclear_highpage_flush to zero page data

2007-04-10 Thread Nate Diller
On 4/10/07, Anton Altaparmakov <[EMAIL PROTECTED]> wrote: On 10 Apr 2007, at 07:10, Andrew Morton wrote: > On Mon, 09 Apr 2007 21:31:37 -0700 Nate Diller > <[EMAIL PROTECTED]> wrote: >> It's very common for file systems to need to zero part or all of a >> page, the >> simplist way is just to use

Re: [PATCH 1/2] fs: use memclear_highpage_flush to zero page data

2007-04-10 Thread Anton Altaparmakov
On 10 Apr 2007, at 07:10, Andrew Morton wrote: On Mon, 09 Apr 2007 21:31:37 -0700 Nate Diller <[EMAIL PROTECTED]> wrote: It's very common for file systems to need to zero part or all of a page, the simplist way is just to use kmap_atomic() and memset(). There's actually a library function i

Re: [PATCH 1/2] fs: use memclear_highpage_flush to zero page data

2007-04-09 Thread Andrew Morton
On Mon, 09 Apr 2007 21:31:37 -0700 Nate Diller <[EMAIL PROTECTED]> wrote: > It's very common for file systems to need to zero part or all of a page, the > simplist way is just to use kmap_atomic() and memset(). There's actually a > library function in include/linux/highmem.h that does exactly tha

[PATCH 1/2] fs: use memclear_highpage_flush to zero page data

2007-04-09 Thread Nate Diller
It's very common for file systems to need to zero part or all of a page, the simplist way is just to use kmap_atomic() and memset(). There's actually a library function in include/linux/highmem.h that does exactly that, but it's confusingly named memclear_highpage_flush(), which is descriptive of