summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.org>2026-09-20 16:38:03 -0300
committerPaulo Alcantara <pc@manguebit.org>2026-09-30 14:23:17 -0300
commit4721587f96cb8de8164f3fd203093a0875560999 (patch)
tree1554210352e7629f4652da82145587988c8bb3bb /tools/lib/python/kdoc
parent7b473ac7cd6f7e087876d3c67b1bc6df662fb429 (diff)
downloadlinux-next-4721587f96cb8de8164f3fd203093a0875560999.tar.gz
linux-next-4721587f96cb8de8164f3fd203093a0875560999.zip
smb: client: discard post-EOF pagecache when extending a file via clone range
cifs_remap_file_range() discarded the pagecache only for the folios overlapping the destination region, so when a clone 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 discard at the smaller of fstart and the old EOF. i_size is still old here, so nothing past the old EOF is flushed to the server. Fixes: c54fc3a4f375 ("cifs: Fix flushing, invalidation and file size with FICLONE") 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')
0 files changed, 0 insertions, 0 deletions