diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-27 16:59:05 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-27 16:59:05 -0500 |
commit | 6131ffaa1f091415b7a24abb01f033d9c0a727f4 (patch) | |
tree | 8983574e9458a5328a30900cb3466e3648421355 /fs/f2fs | |
parent | 45e09bd51b2be1fbb86c2e3d5bb00d32744f1ecb (diff) |
more file_inode() open-coded instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index b7a053d4c6d3..958a46da19ae 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -29,7 +29,7 @@ static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma, | |||
29 | struct vm_fault *vmf) | 29 | struct vm_fault *vmf) |
30 | { | 30 | { |
31 | struct page *page = vmf->page; | 31 | struct page *page = vmf->page; |
32 | struct inode *inode = vma->vm_file->f_path.dentry->d_inode; | 32 | struct inode *inode = file_inode(vma->vm_file); |
33 | struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); | 33 | struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); |
34 | block_t old_blk_addr; | 34 | block_t old_blk_addr; |
35 | struct dnode_of_data dn; | 35 | struct dnode_of_data dn; |
@@ -544,7 +544,7 @@ static int expand_inode_data(struct inode *inode, loff_t offset, | |||
544 | static long f2fs_fallocate(struct file *file, int mode, | 544 | static long f2fs_fallocate(struct file *file, int mode, |
545 | loff_t offset, loff_t len) | 545 | loff_t offset, loff_t len) |
546 | { | 546 | { |
547 | struct inode *inode = file->f_path.dentry->d_inode; | 547 | struct inode *inode = file_inode(file); |
548 | long ret; | 548 | long ret; |
549 | 549 | ||
550 | if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) | 550 | if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) |
@@ -577,7 +577,7 @@ static inline __u32 f2fs_mask_flags(umode_t mode, __u32 flags) | |||
577 | 577 | ||
578 | long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | 578 | long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) |
579 | { | 579 | { |
580 | struct inode *inode = filp->f_dentry->d_inode; | 580 | struct inode *inode = file_inode(filp); |
581 | struct f2fs_inode_info *fi = F2FS_I(inode); | 581 | struct f2fs_inode_info *fi = F2FS_I(inode); |
582 | unsigned int flags; | 582 | unsigned int flags; |
583 | int ret; | 583 | int ret; |