aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-07-28 11:07:29 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-07-28 11:07:29 +0000
commit1b188024c85b135154405f78a2caef82317e550d (patch)
tree3b3af42e3030be1e402e712663a2b9f5c6a193f8 /kernel/inode.c
parenta6ddeaacdc9890f1422b64804fe876c56f1b4c69 (diff)
downloadlibfuse-1b188024c85b135154405f78a2caef82317e550d.tar.gz
fix
Diffstat (limited to 'kernel/inode.c')
-rw-r--r--kernel/inode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/inode.c b/kernel/inode.c
index e256cd7..60c5ade 100644
--- a/kernel/inode.c
+++ b/kernel/inode.c
@@ -540,7 +540,7 @@ static struct inode *get_root_inode(struct super_block *sb, unsigned mode)
attr.ino = FUSE_ROOT_ID;
return fuse_iget(sb, 1, 0, &attr);
}
-
+#ifndef FUSE_MAINLINE
#ifdef KERNEL_2_6
static struct dentry *fuse_get_dentry(struct super_block *sb, void *vobjp)
{
@@ -603,6 +603,7 @@ static struct export_operations fuse_export_operations = {
.encode_fh = fuse_encode_fh,
};
#endif
+#endif
static struct super_operations fuse_super_operations = {
.alloc_inode = fuse_alloc_inode,
@@ -630,9 +631,11 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
sb->s_magic = FUSE_SUPER_MAGIC;
sb->s_op = &fuse_super_operations;
sb->s_maxbytes = MAX_LFS_FILESIZE;
+#ifndef FUSE_MAINLINE
#ifdef KERNEL_2_6
sb->s_export_op = &fuse_export_operations;
#endif
+#endif
file = fget(d.fd);
if (!file)