OSDN Git Service

smb3: use filemap_write_and_wait_range instead of filemap_write_and_wait
authorSteve French <stfrench@microsoft.com>
Mon, 29 Aug 2022 16:53:41 +0000 (11:53 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 30 Aug 2022 22:10:29 +0000 (17:10 -0500)
commit3e3761f1ec7df67d88cfca5e2ea98538f529e645
treec5698c7ca5121a5745e8c368ccc4dc7e03124ff4
parent9c8b7a293f50253e694f19161c045817a938e551
smb3: use filemap_write_and_wait_range instead of filemap_write_and_wait

When doing insert range and collapse range we should be
writing out the cached pages for the ranges affected but not
the whole file.

Fixes: c3a72bb21320 ("smb3: Move the flush out of smb2_copychunk_range() into its callers")
Cc: stable@vger.kernel.org
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/smb2ops.c