diff options
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r-- | drivers/md/bitmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index d6f614738bbd..5432d07c074d 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -212,8 +212,8 @@ char *file_path(struct file *file, char *buf, int count) | |||
212 | if (!buf) | 212 | if (!buf) |
213 | return NULL; | 213 | return NULL; |
214 | 214 | ||
215 | d = file->f_dentry; | 215 | d = file->f_path.dentry; |
216 | v = file->f_vfsmnt; | 216 | v = file->f_path.mnt; |
217 | 217 | ||
218 | buf = d_path(d, v, buf, count); | 218 | buf = d_path(d, v, buf, count); |
219 | 219 | ||
@@ -349,7 +349,7 @@ static struct page *read_page(struct file *file, unsigned long index, | |||
349 | unsigned long count) | 349 | unsigned long count) |
350 | { | 350 | { |
351 | struct page *page = NULL; | 351 | struct page *page = NULL; |
352 | struct inode *inode = file->f_dentry->d_inode; | 352 | struct inode *inode = file->f_path.dentry->d_inode; |
353 | struct buffer_head *bh; | 353 | struct buffer_head *bh; |
354 | sector_t block; | 354 | sector_t block; |
355 | 355 | ||
@@ -662,7 +662,7 @@ static void bitmap_file_put(struct bitmap *bitmap) | |||
662 | bitmap_file_unmap(bitmap); | 662 | bitmap_file_unmap(bitmap); |
663 | 663 | ||
664 | if (file) { | 664 | if (file) { |
665 | struct inode *inode = file->f_dentry->d_inode; | 665 | struct inode *inode = file->f_path.dentry->d_inode; |
666 | invalidate_inode_pages(inode->i_mapping); | 666 | invalidate_inode_pages(inode->i_mapping); |
667 | fput(file); | 667 | fput(file); |
668 | } | 668 | } |