]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: Do not send SMB3 SET_INFO if nothing changed
authorSteve French <stfrench@microsoft.com>
Fri, 3 Aug 2018 01:28:18 +0000 (20:28 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Aug 2018 19:30:59 +0000 (14:30 -0500)
commit423d34b84342f7cf30e02d9a86785f95c5225ef8
treeab7e3a43b2715df31acfb172fc2d2e608dc20fd5
parent2d32d0fc6e2829db6e2d98075b7542c24a0b6ef2
smb3: Do not send SMB3 SET_INFO if nothing changed

An earlier commit had a typo which prevented the
optimization from working:

commit eea826cb44cb ("Do not send SMB3 SET_INFO request if nothing is changing")

Thank you to Metze for noticing this.  Also clear a
reserved field in the FILE_BASIC_INFO struct we send
that should be zero (all the other fields in that
struct were set or cleared explicitly already in
cifs_set_file_info).

Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
CC: Stable <stable@vger.kernel.org> # 4.9.x+
Reported-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/inode.c
fs/cifs/smb2inode.c