HomeFreeBSD

Fix cloning into mmaped and cached file.

Description

Fix cloning into mmaped and cached file.

If the destination file is mmaped and the mmaped region was already
read, so it is cached, we need to update mmaped pages after successful
clone using update_pages().

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Pointed out by: Ka Ho Ng <khng@freebsd.org>
Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Closes #15772

Details

Provenance
pjdAuthored on Jan 17 2024, 4:51 PM
GitHub <noreply@github.com>Committed on Jan 17 2024, 4:51 PM
Parents
rGf0bf7a247dbb: Linux 6.7 compat: zfs_setattr fix atime update
Branches
Unknown
Tags
Unknown