diff options
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 62169c192c21..8e18281b4077 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -2332,7 +2332,7 @@ int __block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, | |||
2332 | get_block_t get_block) | 2332 | get_block_t get_block) |
2333 | { | 2333 | { |
2334 | struct page *page = vmf->page; | 2334 | struct page *page = vmf->page; |
2335 | struct inode *inode = vma->vm_file->f_path.dentry->d_inode; | 2335 | struct inode *inode = file_inode(vma->vm_file); |
2336 | unsigned long end; | 2336 | unsigned long end; |
2337 | loff_t size; | 2337 | loff_t size; |
2338 | int ret; | 2338 | int ret; |
@@ -2371,7 +2371,7 @@ int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, | |||
2371 | get_block_t get_block) | 2371 | get_block_t get_block) |
2372 | { | 2372 | { |
2373 | int ret; | 2373 | int ret; |
2374 | struct super_block *sb = vma->vm_file->f_path.dentry->d_inode->i_sb; | 2374 | struct super_block *sb = file_inode(vma->vm_file)->i_sb; |
2375 | 2375 | ||
2376 | sb_start_pagefault(sb); | 2376 | sb_start_pagefault(sb); |
2377 | 2377 | ||