aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-01-07 11:14:15 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-01-07 11:14:15 +0000
commit2a92727c384e56875abf63ad66858fd72b53b344 (patch)
treea654a3b426ea0bc6d05a2f43921372b5391ffa4c /kernel/inode.c
parentb62201925057936a05b4c0ca7fa65f9511a6df7f (diff)
downloadlibfuse-2a92727c384e56875abf63ad66858fd72b53b344.tar.gz
fix
Diffstat (limited to 'kernel/inode.c')
-rw-r--r--kernel/inode.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/kernel/inode.c b/kernel/inode.c
index 525a5b6..c197d70 100644
--- a/kernel/inode.c
+++ b/kernel/inode.c
@@ -27,15 +27,19 @@ static kmem_cache_t *fuse_inode_cachep;
static int mount_count;
static int user_allow_other;
-static int mount_max = 1000;
#ifdef KERNEL_2_6
module_param(user_allow_other, int, 0644);
-module_param(mount_max, int, 0644);
#else
MODULE_PARM(user_allow_other, "i");
-MODULE_PARM(mount_max, "i");
#endif
MODULE_PARM_DESC(user_allow_other, "Allow non root user to specify the \"allow_other\" or \"allow_root\" mount options");
+
+static int mount_max = 1000;
+#ifdef KERNEL_2_6
+module_param(mount_max, int, 0644);
+#else
+MODULE_PARM(mount_max, "i");
+#endif
MODULE_PARM_DESC(mount_max, "Maximum number of FUSE mounts allowed, if -1 then unlimited (default: 1000)");
#define FUSE_SUPER_MAGIC 0x65735546