The patch titled
     Fix "fs: convert core functions to zero_user_page"
has been added to the -mm tree.  Its filename is
     fix-fs-convert-core-functions-to-zero_user_page.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Fix "fs: convert core functions to zero_user_page"
From: OGAWA Hirofumi <[EMAIL PROTECTED]>

The bug introduced by 01f2705daf5a36208e69d7cf95db9c330f843af6.
It misses to convert the first argument, it should be "new_page".

This became the cause of fatfs corruption.

Cc: Nate Diller <[EMAIL PROTECTED]>
Signed-off-by: OGAWA Hirofumi <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 fs/buffer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/buffer.c~fix-fs-convert-core-functions-to-zero_user_page 
fs/buffer.c
--- a/fs/buffer.c~fix-fs-convert-core-functions-to-zero_user_page
+++ a/fs/buffer.c
@@ -2101,7 +2101,7 @@ int cont_prepare_write(struct page *page
                                                PAGE_CACHE_SIZE, get_block);
                if (status)
                        goto out_unmap;
-               zero_user_page(page, zerofrom, PAGE_CACHE_SIZE - zerofrom,
+               zero_user_page(new_page, zerofrom, PAGE_CACHE_SIZE - zerofrom,
                                KM_USER0);
                generic_commit_write(NULL, new_page, zerofrom, PAGE_CACHE_SIZE);
                unlock_page(new_page);
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

fix-fs-convert-core-functions-to-zero_user_page.patch
power-fix-sizeofpage_size-typo.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to