X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fncpfs%2Fmmap.c;h=70a69115500f1603b589fb3d65e72acc5eb771db;hb=f4ebc993759dc25dc3db6b6f1a13a23df8264d4b;hp=e7d5a3097fe60d2ff05dc4d0a1fc28ba9683d867;hpb=b197ba3c70638a3a2ae39296781912f26ac0f991;p=powerpc.git diff --git a/fs/ncpfs/mmap.c b/fs/ncpfs/mmap.c index e7d5a3097f..70a6911550 100644 --- a/fs/ncpfs/mmap.c +++ b/fs/ncpfs/mmap.c @@ -29,7 +29,7 @@ static struct page* ncp_file_mmap_nopage(struct vm_area_struct *area, unsigned long address, int *type) { struct file *file = area->vm_file; - struct dentry *dentry = file->f_dentry; + struct dentry *dentry = file->f_path.dentry; struct inode *inode = dentry->d_inode; struct page* page; char *pg_addr; @@ -106,7 +106,7 @@ static 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_dentry->d_inode; + struct inode *inode = file->f_path.dentry->d_inode; DPRINTK("ncp_mmap: called\n");