• Miklos Szeredi's avatar
    fuse: copy_file_range should truncate cache · 9b46418c
    Miklos Szeredi authored
    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>
    9b46418c
file.c 84.7 KB