aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r--fs/proc/root.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 361ab4ee42fc..06702783bf40 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -121,6 +121,13 @@ static struct dentry *proc_mount(struct file_system_type *fs_type,
121 if (IS_ERR(sb)) 121 if (IS_ERR(sb))
122 return ERR_CAST(sb); 122 return ERR_CAST(sb);
123 123
124 /*
125 * procfs isn't actually a stacking filesystem; however, there is
126 * too much magic going on inside it to permit stacking things on
127 * top of it
128 */
129 sb->s_stack_depth = FILESYSTEM_MAX_STACK_DEPTH;
130
124 if (!proc_parse_options(options, ns)) { 131 if (!proc_parse_options(options, ns)) {
125 deactivate_locked_super(sb); 132 deactivate_locked_super(sb);
126 return ERR_PTR(-EINVAL); 133 return ERR_PTR(-EINVAL);
@@ -226,8 +233,8 @@ static int proc_root_readdir(struct file *file, struct dir_context *ctx)
226 */ 233 */
227static const struct file_operations proc_root_operations = { 234static const struct file_operations proc_root_operations = {
228 .read = generic_read_dir, 235 .read = generic_read_dir,
229 .iterate = proc_root_readdir, 236 .iterate_shared = proc_root_readdir,
230 .llseek = default_llseek, 237 .llseek = generic_file_llseek,
231}; 238};
232 239
233/* 240/*