Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61499
b: refs/heads/master
c: 6fa20d4
h: refs/heads/master
i:
  61497: 20a13db
  61495: e4771a6
v: v3
  • Loading branch information
Eric authored and Steve French committed Jul 16, 2007
1 parent 057097f commit 635e42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8803863a9051582081fb2bcca3a6dc8fddaed93c
refs/heads/master: 6fa20d4fb58cb342638bc14658083aadcad8fb74
5 changes: 1 addition & 4 deletions trunk/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 635e42e

Please sign in to comment.