patch-2.1.89 linux/drivers/char/ftape/zftape/zftape-init.c

Next file: linux/drivers/char/hfmodem/modem.c
Previous file: linux/drivers/char/fbmem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.88/linux/drivers/char/ftape/zftape/zftape-init.c linux/drivers/char/ftape/zftape/zftape-init.c
@@ -279,12 +279,8 @@
 		static struct vm_operations_struct dummy = { NULL, };
 		vma->vm_ops = &dummy;
 #endif
-#if LINUX_VERSION_CODE >= KERNEL_VER(2,1,45)
-		vma->vm_dentry = dget(filep->f_dentry);
-#else
-		vma_set_inode (vma, ino);
-		inode_inc_count (ino);
-#endif
+		vma->vm_file = filep;
+		filep->f_count++;
 	}
 	current->blocked = old_sigmask; /* restore mask */
 	TRACE_EXIT result;

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