summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.org>2026-09-20 16:37:41 -0300
committerPaulo Alcantara <pc@manguebit.org>2026-09-30 14:23:14 -0300
commit7b473ac7cd6f7e087876d3c67b1bc6df662fb429 (patch)
tree9db5a75bb4d83cc6f9cc1385dfab955156aba257 /tools/lib/python/kdoc/parse_data_structs.py
parentda4fe97fb6c730d9c94a115c7bfa6f98e0d578d0 (diff)
downloadlinux-next-7b473ac7cd6f7e087876d3c67b1bc6df662fb429.tar.gz
linux-next-7b473ac7cd6f7e087876d3c67b1bc6df662fb429.zip
smb: client: discard post-EOF pagecache when extending a file via copy range
cifs_file_copychunk_range() invalidated the pagecache only for the destination region, so when a copy extends the file the folio straddling the old EOF - which may hold data dirtied past EOF through an mmap - was never dropped and became visible as file content once the file was extended. Start the invalidation at the smaller of the destination offset and the old EOF. filemap_invalidate_inode() writes back before invalidating while i_size is still old, so nothing past the old EOF is flushed to the server. Fixes: 8101d6e112e2 ("cifs: Fix copy offload to flush destination region") Reviewed-by: David Howells <dhowells@redhat.com> Reviewed-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Paulo Alcantara <pc@manguebit.org> Cc: Christian Brauner <brauner@kernel.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Cc: Shyam Prasad N <sprasad@microsoft.com> Cc: Tom Talpey <tom@talpey.com> Cc: Bharath SM <bharathsm@microsoft.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions