diff options
Diffstat (limited to 'fs/afs/file.c')
-rw-r--r-- | fs/afs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c index 999bc3caec92..6344aee4ac4b 100644 --- a/fs/afs/file.c +++ b/fs/afs/file.c | |||
@@ -164,7 +164,7 @@ int afs_page_filler(void *data, struct page *page) | |||
164 | _debug("cache said ENOBUFS"); | 164 | _debug("cache said ENOBUFS"); |
165 | default: | 165 | default: |
166 | go_on: | 166 | go_on: |
167 | offset = page->index << PAGE_CACHE_SHIFT; | 167 | offset = page->index << PAGE_SHIFT; |
168 | len = min_t(size_t, i_size_read(inode) - offset, PAGE_SIZE); | 168 | len = min_t(size_t, i_size_read(inode) - offset, PAGE_SIZE); |
169 | 169 | ||
170 | /* read the contents of the file from the server into the | 170 | /* read the contents of the file from the server into the |
@@ -319,7 +319,7 @@ static void afs_invalidatepage(struct page *page, unsigned int offset, | |||
319 | BUG_ON(!PageLocked(page)); | 319 | BUG_ON(!PageLocked(page)); |
320 | 320 | ||
321 | /* we clean up only if the entire page is being invalidated */ | 321 | /* we clean up only if the entire page is being invalidated */ |
322 | if (offset == 0 && length == PAGE_CACHE_SIZE) { | 322 | if (offset == 0 && length == PAGE_SIZE) { |
323 | #ifdef CONFIG_AFS_FSCACHE | 323 | #ifdef CONFIG_AFS_FSCACHE |
324 | if (PageFsCache(page)) { | 324 | if (PageFsCache(page)) { |
325 | struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); | 325 | struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); |