patch-2.1.51 linux/fs/ncpfs/mmap.c

Next file: linux/fs/ncpfs/sock.c
Previous file: linux/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/fs/ncpfs/mmap.c linux/fs/ncpfs/mmap.c
@@ -32,7 +32,7 @@
 static unsigned long ncp_file_mmap_nopage(struct vm_area_struct *area,
 				     unsigned long address, int no_share)
 {
-	struct inode *inode = area->vm_inode;
+	struct inode *inode = area->vm_dentry->d_inode;
 	unsigned long page;
 	unsigned int clear;
 	unsigned long tmp;
@@ -130,7 +130,7 @@
 		return -EACCES;
 	if (!IS_RDONLY(inode)) {
 		inode->i_atime = CURRENT_TIME;
-		inode->i_dirt = 1;
+		mark_inode_dirty(inode);
 	}
 
 	vma->vm_dentry = dget(file->f_dentry);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov