Skip to content

Commit

Permalink
[CIFS] Typo in previous patch
Browse files Browse the repository at this point in the history
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Jul 16, 2007
1 parent 6fa20d4 commit 7e42ca8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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 7e42ca8

Please sign in to comment.