cifs: update mnt_cifs_flags during reconfigure
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 14 Dec 2020 06:40:26 +0000 (16:40 +1000)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 19:37:43 +0000 (13:37 -0600)
Many mount flags (e.g. for noperm, noxattr, nobrl,
cifsacl, mfsymlinks and more) can be updated now.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/fs_context.c

index 29b1dd2..a309e49 100644 (file)
@@ -705,6 +705,7 @@ static int smb3_reconfigure(struct fs_context *fc)
 
        smb3_cleanup_fs_context_contents(cifs_sb->ctx);
        rc = smb3_fs_context_dup(cifs_sb->ctx, ctx);
+       smb3_update_mnt_flags(cifs_sb);
 
        return rc;
 }