patch-2.1.45 linux/fs/fat/mmap.c
Next file: linux/fs/fcntl.c
Previous file: linux/fs/fat/misc.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed Jul 16 19:22:51 1997
- Orig file:
v2.1.44/linux/fs/fat/mmap.c
- Orig date:
Mon Jun 16 16:35:57 1997
diff -u --recursive --new-file v2.1.44/linux/fs/fat/mmap.c linux/fs/fat/mmap.c
@@ -29,7 +29,7 @@
unsigned long address,
int error_code)
{
- struct inode * inode = area->vm_inode;
+ struct inode * inode = area->vm_dentry->d_inode;
unsigned long page;
unsigned int clear;
int pos;
@@ -101,11 +101,10 @@
return -EACCES;
if (!IS_RDONLY(inode)) {
inode->i_atime = CURRENT_TIME;
- inode->i_dirt = 1;
+ mark_inode_dirty(inode);
}
- vma->vm_inode = inode;
- atomic_inc(&inode->i_count);
+ vma->vm_dentry = dget(file->f_dentry);
vma->vm_ops = &fat_file_mmap;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov