pre-patch-2.1.89-5 breaks the ftape driver

Mikael Pettersson (Mikael.Pettersson@sophia.inria.fr)
Tue, 3 Mar 1998 11:48:23 +0100 (MET)


pre-patch-2.1.89-5 includes a change to <linux/mm.h> which breaks
the ftape driver. By diffing 2.1.88 and 2.1.89-pre5, looking for
vm_dentry-related code, I came up with the fix below. Works fine for me.

/Mikael

diff -ru --new-file linux-2.1.89-pre5/drivers/char/ftape/zftape/zftape-init.c linux/drivers/char/ftape/zftape/zftape-init.c
--- linux-2.1.89-pre5/drivers/char/ftape/zftape/zftape-init.c Sat Jan 24 02:38:04 1998
+++ linux/drivers/char/ftape/zftape/zftape-init.c Mon Mar 2 23:41:08 1998
@@ -279,7 +279,10 @@
static struct vm_operations_struct dummy = { NULL, };
vma->vm_ops = &dummy;
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VER(2,1,45)
+#if LINUX_VERSION_CODE >= KERNEL_VER(2,1,89)
+ vma->vm_file = filep;
+ filep->f_count++;
+#elif LINUX_VERSION_CODE >= KERNEL_VER(2,1,45)
vma->vm_dentry = dget(filep->f_dentry);
#else
vma_set_inode (vma, ino);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu