diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2020-12-12 20:40:50 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-14 16:16:23 +0100 |
commit | 8401e93678933a140cebfa2e7122c1a6b687c355 (patch) | |
tree | 1acc691e51c7815dc9b14a0d995e2372c55ef955 /fs/cifs/misc.c | |
parent | cifs: remove some minor warnings pointed out by kernel test robot (diff) | |
download | linux-8401e93678933a140cebfa2e7122c1a6b687c355.tar.xz linux-8401e93678933a140cebfa2e7122c1a6b687c355.zip |
cifs: remove [gu]id/backup[gu]id/file_mode/dir_mode from cifs_sb
We can already access these from cifs_sb->ctx so we no longer need
a local copy in cifs_sb.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 1c14cf01dbef..82e176720ca6 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -35,6 +35,7 @@ #ifdef CONFIG_CIFS_DFS_UPCALL #include "dns_resolve.h" #endif +#include "fs_context.h" extern mempool_t *cifs_sm_req_poolp; extern mempool_t *cifs_req_poolp; @@ -632,11 +633,11 @@ bool backup_cred(struct cifs_sb_info *cifs_sb) { if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPUID) { - if (uid_eq(cifs_sb->mnt_backupuid, current_fsuid())) + if (uid_eq(cifs_sb->ctx->backupuid, current_fsuid())) return true; } if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPGID) { - if (in_group_p(cifs_sb->mnt_backupgid)) + if (in_group_p(cifs_sb->ctx->backupgid)) return true; } |