2022-08-30 02:45:20

by Steve French

[permalink] [raw]
Subject: [PATCH v2][SMB3 client] 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 (and also checking for errors if writing them out
fails)

See attached

--
Thanks,

Steve


Attachments:
0001-smb3-use-filemap_write_and_wait_range-instead-of-fil.patch (2.86 kB)

2022-08-30 08:56:26

by David Howells

[permalink] [raw]
Subject: Re: [PATCH v2][SMB3 client] smb3: use filemap_write_and_wait_range instead of filemap_write_and_wait

Steve French <[email protected]> wrote:

> Subject: [PATCH] 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.
>
> Cc: [email protected]
> Signed-off-by: Steve French <[email protected]>

Reviewed-by: David Howells <[email protected]>