Skip to content

Commit

Permalink
[CIFS] zero_user_page() conversions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric authored and Steve French committed Jul 16, 2007
1 parent 8803863 commit 6fa20d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6fa20d4

Please sign in to comment.