diff options
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 02ebb1f1d3b0..0e5ec371ce72 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -2221,7 +2221,7 @@ block_page_mkwrite(struct vm_area_struct *vma, struct page *page, | |||
2221 | lock_page(page); | 2221 | lock_page(page); |
2222 | size = i_size_read(inode); | 2222 | size = i_size_read(inode); |
2223 | if ((page->mapping != inode->i_mapping) || | 2223 | if ((page->mapping != inode->i_mapping) || |
2224 | ((page->index << PAGE_CACHE_SHIFT) > size)) { | 2224 | (page_offset(page) > size)) { |
2225 | /* page got truncated out from underneath us */ | 2225 | /* page got truncated out from underneath us */ |
2226 | goto out_unlock; | 2226 | goto out_unlock; |
2227 | } | 2227 | } |