Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6fa20d4fb58cb342638bc14658083aadcad8fb74
Commit:     6fa20d4fb58cb342638bc14658083aadcad8fb74
Parent:     8803863a9051582081fb2bcca3a6dc8fddaed93c
Author:     Eric <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 16 16:23:19 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 16:23:19 2007 +0000

    [CIFS] zero_user_page() conversions
    
    Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
---
 fs/cifs/inode.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index cfa5b36..9ae901e 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1353,10 +1353,7 @@ static int cifs_truncate_page(struct address_space 
*mapping, loff_t from)
        if (!page)
                return -ENOMEM;
 
-       kaddr = kmap_atomic(page, KM_USER0);
-       memset(kaddr + offset, 0, PAGE_CACHE_SIZE - offset);
-       flush_dcache_page(page);
-       kunmap_atomic(kaddr, KM_USER0);
+       zero_user_page(page, offset, PAGE_CACHE_SIZE - offset), KM_USER0);
        unlock_page(page);
        page_cache_release(page);
        return rc;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to