diff options
author | Steve French <stfrench@microsoft.com> | 2022-08-23 14:07:41 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-28 22:34:07 -0500 |
commit | fa30a81f255a56cccd89552cd6ce7ea6e8d8acc4 (patch) | |
tree | 7cfd66e49ee222d5ca364c2ae0fd507194e744fa /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | c3a72bb213209adfe981a4a92ea5746a778323e4 (diff) |
smb3: fix temporary data corruption in collapse range
collapse range doesn't discard the affected cached region
so can risk temporarily corrupting the file data. This
fixes xfstest generic/031
I also decided to merge a minor cleanup to this into the same patch
(avoiding rereading inode size repeatedly unnecessarily) to make it
clearer.
Cc: stable@vger.kernel.org
Fixes: 5476b5dd82c8b ("cifs: add support for FALLOC_FL_COLLAPSE_RANGE")
Reported-by: David Howells <dhowells@redhat.com>
Tested-by: David Howells <dhowells@redhat.com>
Reviewed-by: David Howells <dhowells@redhat.com>
cc: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions