summaryrefslogtreecommitdiffstats
path: root/fs/cifs/fs_context.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2021-02-10 02:55:47 +0100
committerSteve French <stfrench@microsoft.com>2021-02-10 03:47:05 +0100
commita0f85e38a3c23a334d9ea111cfa4fcfa4b3f9b64 (patch)
tree51dc7e355c709a5c26c7161b1e3811c879f4f749 /fs/cifs/fs_context.c
parentcifs: fix dfs-links (diff)
downloadlinux-a0f85e38a3c23a334d9ea111cfa4fcfa4b3f9b64.tar.xz
linux-a0f85e38a3c23a334d9ea111cfa4fcfa4b3f9b64.zip
cifs: do not disable noperm if multiuser mount option is not provided
Fixes small regression in implementation of new mount API. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Reported-by: Hyunchul Lee <hyc.lee@gmail.com> Tested-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/fs_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c
index 5111aadfdb6b..1b1c56e52395 100644
--- a/fs/cifs/fs_context.c
+++ b/fs/cifs/fs_context.c
@@ -1533,8 +1533,8 @@ void smb3_update_mnt_flags(struct cifs_sb_info *cifs_sb)
cifs_sb->mnt_cifs_flags |= (CIFS_MOUNT_MULTIUSER |
CIFS_MOUNT_NO_PERM);
else
- cifs_sb->mnt_cifs_flags &= ~(CIFS_MOUNT_MULTIUSER |
- CIFS_MOUNT_NO_PERM);
+ cifs_sb->mnt_cifs_flags &= ~CIFS_MOUNT_MULTIUSER;
+
if (ctx->strict_io)
cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_STRICT_IO;