[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20061010231802.e42582f7.akpm@osdl.org>
Date: Tue, 10 Oct 2006 23:18:02 -0700
From: Andrew Morton <akpm@...l.org>
To: Nick Piggin <nickpiggin@...oo.com.au>,
Nick Piggin <npiggin@...e.de>,
Linux Memory Management <linux-mm@...ck.org>,
Linux Kernel <linux-kernel@...r.kernel.org>
Subject: [patch 4/6] generic_file_buffered_write(): fix page prefaulting
From: Andrew Morton <akpm@...l.org>
generic_file_buffered_write() is passing the wrong length arg to
fault_in_pages_readable() (I think - please check).
Signed-off-by: Andrew Morton <akpm@...l.org>
---
mm/filemap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN mm/filemap.c~generic_file_buffered_write-fix-page-prefaulting mm/filemap.c
--- a/mm/filemap.c~generic_file_buffered_write-fix-page-prefaulting
+++ a/mm/filemap.c
@@ -2110,7 +2110,7 @@ generic_file_buffered_write(struct kiocb
* same page as we're writing to, without it being marked
* up-to-date.
*/
- fault_in_pages_readable(buf, maxlen);
+ fault_in_pages_readable(buf, bytes);
page = __grab_cache_page(mapping,index,&cached_page,&lru_pvec);
if (!page) {
_
-
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