diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-23 17:07:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-22 23:31:31 -0500 |
commit | 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch) | |
tree | 8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /drivers/md | |
parent | 57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff) |
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 7155945f8eb8..4fd9d6aeff6a 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c | |||
@@ -337,7 +337,7 @@ static int read_page(struct file *file, unsigned long index, | |||
337 | struct page *page) | 337 | struct page *page) |
338 | { | 338 | { |
339 | int ret = 0; | 339 | int ret = 0; |
340 | struct inode *inode = file->f_path.dentry->d_inode; | 340 | struct inode *inode = file_inode(file); |
341 | struct buffer_head *bh; | 341 | struct buffer_head *bh; |
342 | sector_t block; | 342 | sector_t block; |
343 | 343 | ||
@@ -755,7 +755,7 @@ static void bitmap_file_unmap(struct bitmap_storage *store) | |||
755 | free_buffers(sb_page); | 755 | free_buffers(sb_page); |
756 | 756 | ||
757 | if (file) { | 757 | if (file) { |
758 | struct inode *inode = file->f_path.dentry->d_inode; | 758 | struct inode *inode = file_inode(file); |
759 | invalidate_mapping_pages(inode->i_mapping, 0, -1); | 759 | invalidate_mapping_pages(inode->i_mapping, 0, -1); |
760 | fput(file); | 760 | fput(file); |
761 | } | 761 | } |