diff options
| author | 2024-08-27 15:47:27 +0100 | |
|---|---|---|
| committer | 2024-08-28 07:48:33 -0500 | |
| commit | 8101d6e112e2524e967368f920c404ae445a9757 (patch) | |
| tree | 8c62010787075f9c89a10a9da2892d94d19f4a2c /security/selinux/hooks.c | |
| parent | netfs, cifs: Fix handling of short DIO read (diff) | |
| download | wireguard-linux-8101d6e112e2524e967368f920c404ae445a9757.tar.xz wireguard-linux-8101d6e112e2524e967368f920c404ae445a9757.zip | |
cifs: Fix copy offload to flush destination region
Fix cifs_file_copychunk_range() to flush the destination region before
invalidating it to avoid potential loss of data should the copy fail, in
whole or in part, in some way.
Fixes: 7b2404a886f8 ("cifs: Fix flushing, invalidation and file size with copy_file_range()")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <stfrench@microsoft.com>
cc: Paulo Alcantara <pc@manguebit.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Matthew Wilcox <willy@infradead.org>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: linux-mm@kvack.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
