summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ncpfs/mmap.c')
-rw-r--r--fs/ncpfs/mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ncpfs/mmap.c b/fs/ncpfs/mmap.c
index 8e814d153..937f40cec 100644
--- a/fs/ncpfs/mmap.c
+++ b/fs/ncpfs/mmap.c
@@ -132,8 +132,8 @@ int ncp_mmap(struct inode *inode, struct file *file, struct vm_area_struct *vma)
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
- vma->vm_inode = inode;
- atomic_inc(&inode->i_count);
+
+ vma->vm_dentry = dget(file->f_dentry);
vma->vm_ops = &ncp_file_mmap;
return 0;
}