Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2002-09-17 03:48:04 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-09-17 03:48:04 -0700
commit5edfe56c46913a4ac68aa54e680b02293d01b11b (patch)
treef154a27edca138329a463c0f68d67428b17e4c73
parent7156d71a1245c3af3fd7b00996a99e48b553d2ff (diff)
[PATCH] sparc64 2.5.x file corruptions found
Andrew removed a flush_dcache_page in his kmap_atomic generic_file_* changes. Doing that sort of corrupts data on some platforms.
-rw-r--r--mm/filemap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 4ad7d36e71c4..1d5d3fcf4b6b 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2161,6 +2161,7 @@ generic_file_write_nolock(struct file *file, const struct iovec *iov,
break;
}
page_fault = filemap_copy_from_user(page, offset, buf, bytes);
+ flush_dcache_page(page);
status = a_ops->commit_write(file, page, offset, offset+bytes);
if (unlikely(page_fault)) {
status = -EFAULT;