cifs: do not disable noperm if multiuser mount option is not provided
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 10 Feb 2021 01:55:47 +0000 (11:55 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 10 Feb 2021 02:47:05 +0000 (20:47 -0600)
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>
fs/cifs/fs_context.c

index 5111aad..1b1c56e 100644 (file)
@@ -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;