]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Backup intent flag missing from some more ops
authorAmir Goldstein <amir73il@gmail.com>
Mon, 3 Feb 2020 19:46:43 +0000 (21:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:32:50 +0000 (08:32 +0100)
commitb362d049d2efaacde3c0b76ecfc11327dd875264
tree659adb55753fce3d764bfe86c7d2d403e63aeddd
parent5a124c1693f5d4cff75b1c92e5ac24165cd568c2
SMB3: Backup intent flag missing from some more ops

[ Upstream commit 7177b6a3ce7a3455dcceecbfe8d7c3e031777f6d ]

When "backup intent" is requested on the mount (e.g. backupuid or
backupgid mount options), the corresponding flag was missing from
some of the operations.

Change all operations to use the macro cifs_create_options() to
set the backup intent flag if needed.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: d447e794a372 ("cifs: Fix uninitialized memory read in smb3_qfs_tcon()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
14 files changed:
fs/cifs/cifsacl.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dir.c
fs/cifs/file.c
fs/cifs/inode.c
fs/cifs/ioctl.c
fs/cifs/link.c
fs/cifs/smb1ops.c
fs/cifs/smb2inode.c
fs/cifs/smb2ops.c
fs/cifs/smb2proto.h