|
@@ -1253,6 +1253,10 @@ out:
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static const struct super_operations pipefs_ops = {
|
|
|
|
+ .destroy_inode = free_inode_nonrcu,
|
|
|
|
+};
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* pipefs should _never_ be mounted by userland - too much of security hassle,
|
|
* pipefs should _never_ be mounted by userland - too much of security hassle,
|
|
* no real gain from having the whole whorehouse mounted. So we don't need
|
|
* no real gain from having the whole whorehouse mounted. So we don't need
|
|
@@ -1262,7 +1266,7 @@ out:
|
|
static struct dentry *pipefs_mount(struct file_system_type *fs_type,
|
|
static struct dentry *pipefs_mount(struct file_system_type *fs_type,
|
|
int flags, const char *dev_name, void *data)
|
|
int flags, const char *dev_name, void *data)
|
|
{
|
|
{
|
|
- return mount_pseudo(fs_type, "pipe:", NULL, PIPEFS_MAGIC);
|
|
|
|
|
|
+ return mount_pseudo(fs_type, "pipe:", &pipefs_ops, PIPEFS_MAGIC);
|
|
}
|
|
}
|
|
|
|
|
|
static struct file_system_type pipe_fs_type = {
|
|
static struct file_system_type pipe_fs_type = {
|