Fix compilation on 2.6.9
authorMiklos Szeredi <miklos@szeredi.hu>
Sat, 30 Sep 2006 06:17:31 +0000 (06:17 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Sat, 30 Sep 2006 06:17:31 +0000 (06:17 +0000)
ChangeLog
kernel/control.c

index e98579215014270172807e6f61c9f204429d27b0..5f75e15f97cecd11fed4aef08469c8d2ca0bbed2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-29  Miklos Szeredi <miklos@szeredi.hu>
+
+       * Fix compilation on 2.6.9.  Report from Troy Ayers
+
 2006-09-27  Miklos Szeredi <miklos@szeredi.hu>
 
        * Fix Oops in fuse_readpages().  Reported by David Shaw
index 28956eff68fd221f409243a165771dcf7288870e..380630d84b1c4955ac38fc1762509513469a12bf 100644 (file)
@@ -69,6 +69,17 @@ static struct file_operations fuse_ctl_waiting_ops = {
        .read = fuse_conn_waiting_read,
 };
 
+#ifndef KERNEL_2_6_10_PLUS
+struct dentry *d_alloc_name(struct dentry *parent, const char *name)
+{
+       struct qstr q;
+
+       q.name = name;
+       q.len = strlen(name);
+       q.hash = full_name_hash(q.name, q.len);
+       return d_alloc(parent, &q);
+}
+#endif
 static struct dentry *fuse_ctl_add_dentry(struct dentry *parent,
                                          struct fuse_conn *fc,
                                          const char *name,