author: Eric Biggers <ebiggers@google.com> 2019-08-21 22:16:33 -0700
committer: Al Viro <viro@zeniv.linux.org.uk> 2019-09-05 14:33:45 -0400
commit: 1dd9bc08cf1420d466dd8dcfcc233777e61ca5d2
parent: d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 3 deletions
diff --git a/fs/fs_context.c b/fs/fs_context.c
index 103643c68e3f..87c2c9687d90 100644
--- a/fs/fs_context.c
+++ b/fs/fs_context.c
@@ -279,10 +279,8 @@ static struct fs_context *alloc_fs_context(struct file_system_type *fs_type,
fc->user_ns = get_user_ns(reference->d_sb->s_user_ns);
break;
case FS_CONTEXT_FOR_RECONFIGURE:
- /* We don't pin any namespaces as the superblock's
- * subscriptions cannot be changed at this point.
- */
atomic_inc(&reference->d_sb->s_active);
+ fc->user_ns = get_user_ns(reference->d_sb->s_user_ns);
fc->root = dget(reference);
break;
}