aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--kernel/inode.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bb22b5d..caae9e5 100644
--- 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
diff --git a/kernel/inode.c b/kernel/inode.c
index fab98dc..0e33035 100644
--- a/kernel/inode.c
+++ b/kernel/inode.c
@@ -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;
}