diff options
author | Eric <sandeen@redhat.com> | 2007-07-16 12:23:19 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-07-16 12:23:19 -0400 |
commit | 6fa20d4fb58cb342638bc14658083aadcad8fb74 (patch) | |
tree | d6b2959b965f87e1b92ff7b90636bf2a9257a9ff /fs/cifs | |
parent | 8803863a9051582081fb2bcca3a6dc8fddaed93c (diff) |
[CIFS] zero_user_page() conversions
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | 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 cfa5b360d12e..9ae901e54412 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) | |||
1353 | if (!page) | 1353 | if (!page) |
1354 | return -ENOMEM; | 1354 | return -ENOMEM; |
1355 | 1355 | ||
1356 | kaddr = kmap_atomic(page, KM_USER0); | 1356 | zero_user_page(page, offset, PAGE_CACHE_SIZE - offset), KM_USER0); |
1357 | memset(kaddr + offset, 0, PAGE_CACHE_SIZE - offset); | ||
1358 | flush_dcache_page(page); | ||
1359 | kunmap_atomic(kaddr, KM_USER0); | ||
1360 | unlock_page(page); | 1357 | unlock_page(page); |
1361 | page_cache_release(page); | 1358 | page_cache_release(page); |
1362 | return rc; | 1359 | return rc; |