diff options
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/mmap.c b/fs/ocfs2/mmap.c index ee64749e2eeb..98756156d298 100644 --- a/fs/ocfs2/mmap.c +++ b/fs/ocfs2/mmap.c | |||
@@ -89,7 +89,7 @@ static int __ocfs2_page_mkwrite(struct inode *inode, struct buffer_head *di_bh, | |||
89 | { | 89 | { |
90 | int ret; | 90 | int ret; |
91 | struct address_space *mapping = inode->i_mapping; | 91 | struct address_space *mapping = inode->i_mapping; |
92 | loff_t pos = page->index << PAGE_CACHE_SHIFT; | 92 | loff_t pos = page_offset(page); |
93 | unsigned int len = PAGE_CACHE_SIZE; | 93 | unsigned int len = PAGE_CACHE_SIZE; |
94 | pgoff_t last_index; | 94 | pgoff_t last_index; |
95 | struct page *locked_page = NULL; | 95 | struct page *locked_page = NULL; |