diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 20e5642e9f9f..3d4df44e4221 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -2238,14 +2238,12 @@ static ssize_t generic_perform_write(struct file *file, | |||
2238 | 2238 | ||
2239 | do { | 2239 | do { |
2240 | struct page *page; | 2240 | struct page *page; |
2241 | pgoff_t index; /* Pagecache index for current page */ | ||
2242 | unsigned long offset; /* Offset into pagecache page */ | 2241 | unsigned long offset; /* Offset into pagecache page */ |
2243 | unsigned long bytes; /* Bytes to write to page */ | 2242 | unsigned long bytes; /* Bytes to write to page */ |
2244 | size_t copied; /* Bytes copied from user */ | 2243 | size_t copied; /* Bytes copied from user */ |
2245 | void *fsdata; | 2244 | void *fsdata; |
2246 | 2245 | ||
2247 | offset = (pos & (PAGE_CACHE_SIZE - 1)); | 2246 | offset = (pos & (PAGE_CACHE_SIZE - 1)); |
2248 | index = pos >> PAGE_CACHE_SHIFT; | ||
2249 | bytes = min_t(unsigned long, PAGE_CACHE_SIZE - offset, | 2247 | bytes = min_t(unsigned long, PAGE_CACHE_SIZE - offset, |
2250 | iov_iter_count(i)); | 2248 | iov_iter_count(i)); |
2251 | 2249 | ||