diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-31 07:41:28 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 19:01:25 +0100 |
commit | a67f797db61ee8f2d732e411bf35a92fd78b44a2 (patch) | |
tree | 87f3040a01368e10310a899b3db35545885d7c36 /fs/ncpfs/mmap.c | |
parent | kill f_dentry uses (diff) | |
download | linux-a67f797db61ee8f2d732e411bf35a92fd78b44a2.tar.xz linux-a67f797db61ee8f2d732e411bf35a92fd78b44a2.zip |
ncpfs: use file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/ncpfs/mmap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ncpfs/mmap.c b/fs/ncpfs/mmap.c index b359d12eb359..33b873b259a8 100644 --- a/fs/ncpfs/mmap.c +++ b/fs/ncpfs/mmap.c @@ -30,9 +30,7 @@ static int ncp_file_mmap_fault(struct vm_area_struct *area, struct vm_fault *vmf) { - struct file *file = area->vm_file; - struct dentry *dentry = file->f_path.dentry; - struct inode *inode = dentry->d_inode; + struct inode *inode = file_inode(area->vm_file); char *pg_addr; unsigned int already_read; unsigned int count; |