diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-09-20 16:38:03 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-09-30 14:23:17 -0300 |
| commit | 4721587f96cb8de8164f3fd203093a0875560999 (patch) | |
| tree | 1554210352e7629f4652da82145587988c8bb3bb /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | 7b473ac7cd6f7e087876d3c67b1bc6df662fb429 (diff) | |
| download | linux-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/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
