patch-2.1.89 linux/fs/fat/mmap.c
Next file: linux/fs/inode.c
Previous file: linux/fs/fat/file.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sat Feb 28 13:19:14 1998
- Orig file:
v2.1.88/linux/fs/fat/mmap.c
- Orig date:
Fri Jan 23 18:10:32 1998
diff -u --recursive --new-file v2.1.88/linux/fs/fat/mmap.c linux/fs/fat/mmap.c
@@ -32,7 +32,7 @@
unsigned long address,
int error_code)
{
- struct inode * inode = area->vm_dentry->d_inode;
+ struct inode * inode = area->vm_file->f_dentry->d_inode;
unsigned long page;
unsigned int clear;
int pos;
@@ -112,14 +112,16 @@
mark_inode_dirty(inode);
}
- vma->vm_dentry = dget(file->f_dentry);
+ vma->vm_file = file;
+ file->f_count++;
vma->vm_ops = &fat_file_mmap;
return 0;
}
-int fat_readpage(struct dentry * dentry, struct page * page)
+int fat_readpage(struct file *file, struct page * page)
{
+ struct dentry * dentry = file->f_dentry;
struct inode * inode = dentry->d_inode;
if (MSDOS_SB(inode->i_sb)->cvf_format &&
MSDOS_SB(inode->i_sb)->cvf_format->cvf_readpage)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov