smb3: Move the flush out of smb2_copychunk_range() into its callers
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Aug 2022 13:07:28 +0000 (14:07 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 29 Aug 2022 03:34:07 +0000 (22:34 -0500)
commitc3a72bb213209adfe981a4a92ea5746a778323e4
tree3e441c05d639f49bfe976eb87bf5c6f386dfd131
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
smb3: Move the flush out of smb2_copychunk_range() into its callers

Move the flush out of smb2_copychunk_range() into its callers.  This will
allow the pagecache to be invalidated between the flush and the operation
in smb3_collapse_range() and smb3_insert_range().

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/smb2ops.c