Revert "sdcardfs: limit stacking depth"
authoralexax66 <alexax66@mail.ru>
Sat, 9 Sep 2017 13:07:13 +0000 (13:07 +0000)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:26 +0000 (18:03 +0200)
This reverts commit 1d9ff6b31bd797409085ddeb606d8654979be7dc.

fs/sdcardfs/main.c

index fb9dd5dea2b8ce8ca672b1f58dc25b81fafca210..8d16e4d16d96da5a7792f97a1e8f8c797a64bd18 100644 (file)
@@ -284,13 +284,6 @@ static int sdcardfs_read_super(struct vfsmount *mnt, struct super_block *sb,
        atomic_inc(&lower_sb->s_active);
        sdcardfs_set_lower_super(sb, lower_sb);
 
-       sb->s_stack_depth = lower_sb->s_stack_depth + 1;
-       if (sb->s_stack_depth > FILESYSTEM_MAX_STACK_DEPTH) {
-               pr_err("sdcardfs: maximum fs stacking depth exceeded\n");
-               err = -EINVAL;
-               goto out_sput;
-       }
-
        /* inherit maxbytes from lower file system */
        sb->s_maxbytes = lower_sb->s_maxbytes;