fix incompatiblity with Red Hat kernels
authorMiklos Szeredi <miklos@szeredi.hu>
Thu, 24 Oct 2002 09:19:43 +0000 (09:19 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Thu, 24 Oct 2002 09:19:43 +0000 (09:19 +0000)
ChangeLog
kernel/inode.c

index bb22b5d312e5a1334195df44e9309a27456b0f78..caae9e52203a18339ecc22c684813ac2d2a537ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-22  Miklos Szeredi <mszeredi@inf.bme.hu>
+
+       * fix incompatiblity with Red Hat kernels, with help from Nathan
+       Thompson-Amato.
+
 2002-04-18  Mark Glines <mark@glines.org>
 
        * added an alternative to fuse_mount(), called
index fab98dc918d51fbbef5172a700bb09fa5e79a171..0e330358f4dd24deed7cf66985740a2ed46e5d49 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/file.h>
+#include <linux/proc_fs.h>
 
 #define FUSE_SUPER_MAGIC 0x65735546
 
@@ -132,7 +133,7 @@ static struct fuse_conn *get_conn(struct fuse_mount_data *d)
        if(file)
                ino = file->f_dentry->d_inode;
        
-       if(!ino || ino->u.generic_ip != proc_fuse_dev) {
+       if(!ino || !proc_fuse_dev || proc_fuse_dev->low_ino != ino->i_ino) {
                printk("fuse_read_super: Bad file: %i\n", d->fd);
                goto out;
        }