aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 9ae901e54412..3482879b3d3f 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1346,14 +1346,13 @@ static int cifs_truncate_page(struct address_space *mapping, loff_t from)
1346 pgoff_t index = from >> PAGE_CACHE_SHIFT; 1346 pgoff_t index = from >> PAGE_CACHE_SHIFT;
1347 unsigned offset = from & (PAGE_CACHE_SIZE - 1); 1347 unsigned offset = from & (PAGE_CACHE_SIZE - 1);
1348 struct page *page; 1348 struct page *page;
1349 char *kaddr;
1350 int rc = 0; 1349 int rc = 0;
1351 1350
1352 page = grab_cache_page(mapping, index); 1351 page = grab_cache_page(mapping, index);
1353 if (!page) 1352 if (!page)
1354 return -ENOMEM; 1353 return -ENOMEM;
1355 1354
1356 zero_user_page(page, offset, PAGE_CACHE_SIZE - offset), KM_USER0); 1355 zero_user_page(page, offset, PAGE_CACHE_SIZE - offset, KM_USER0);
1357 unlock_page(page); 1356 unlock_page(page);
1358 page_cache_release(page); 1357 page_cache_release(page);
1359 return rc; 1358 return rc;