Skip to content
Commit 9b46418c authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: copy_file_range should truncate cache



After the copy operation completes the cache is not up-to-date.  Truncate
all pages in the interval that has successfully been copied.

Truncating completely copied dirty pages is okay, since the data has been
overwritten anyway.  Truncating partially copied dirty pages is not okay;
add a comment for now.

Fixes: 88bc7d50 ("fuse: add support for copy_file_range()")
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 2c4656df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment