Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61500
b: refs/heads/master
c: 7e42ca8
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed Jul 16, 2007
1 parent 635e42e commit 184e86a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 6fa20d4fb58cb342638bc14658083aadcad8fb74
refs/heads/master: 7e42ca886b0282679c2721dc4853163cc89b8a34
3 changes: 1 addition & 2 deletions trunk/fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1346,14 +1346,13 @@ static int cifs_truncate_page(struct address_space *mapping, loff_t from)
pgoff_t index = from >> PAGE_CACHE_SHIFT;
unsigned offset = from & (PAGE_CACHE_SIZE - 1);
struct page *page;
char *kaddr;
int rc = 0;

page = grab_cache_page(mapping, index);
if (!page)
return -ENOMEM;

zero_user_page(page, offset, PAGE_CACHE_SIZE - offset), 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 184e86a

Please sign in to comment.