]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ncpfs/mmap.c
new helper: file_inode(file)
[mirror_ubuntu-artful-kernel.git] / fs / ncpfs / mmap.c
index 63d14a99483d5d39ec58bfd8419c53173721da99..ee24df5af1f929671ae0c6d8145d7951e767fc17 100644 (file)
@@ -105,7 +105,7 @@ static const struct vm_operations_struct ncp_file_mmap =
 /* This is used for a general mmap of a ncp file */
 int ncp_mmap(struct file *file, struct vm_area_struct *vma)
 {
-       struct inode *inode = file->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(file);
        
        DPRINTK("ncp_mmap: called\n");