From: Miklos Szeredi Date: Sat, 30 Sep 2006 06:17:31 +0000 (+0000) Subject: Fix compilation on 2.6.9 X-Git-Tag: fuse_2_6_0_rc2~9 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=40ec17587bfee44180bc6b656545ead51a1a2037;p=qemu-gpiodev%2Flibfuse.git Fix compilation on 2.6.9 --- diff --git a/ChangeLog b/ChangeLog index e985792..5f75e15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-09-29 Miklos Szeredi + + * Fix compilation on 2.6.9. Report from Troy Ayers + 2006-09-27 Miklos Szeredi * Fix Oops in fuse_readpages(). Reported by David Shaw diff --git a/kernel/control.c b/kernel/control.c index 28956ef..380630d 100644 --- a/kernel/control.c +++ b/kernel/control.c @@ -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,