diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-09-30 06:17:31 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-09-30 06:17:31 +0000 |
commit | 40ec17587bfee44180bc6b656545ead51a1a2037 (patch) | |
tree | 63d62aa786c082b087e8845d112aa293fc9f78d1 | |
parent | 07cf0feb2efeea4d90bcf700438a4bb4f97607dd (diff) | |
download | libfuse-40ec17587bfee44180bc6b656545ead51a1a2037.tar.gz |
Fix compilation on 2.6.9
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | kernel/control.c | 11 |
2 files changed, 15 insertions, 0 deletions
@@ -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 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, |