diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2019-05-28 13:22:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-11 12:19:16 +0200 |
commit | 62fc9aae41bd9f2f5da55847c5e30be838106e90 (patch) | |
tree | 56b295ff80a1ddf6aea0f8be8d7d9cd295298337 /fs/pstore/platform.c | |
parent | dbe54b432a013431c8557716acdb15b364a10d85 (diff) | |
download | linux-stable-62fc9aae41bd9f2f5da55847c5e30be838106e90.tar.gz linux-stable-62fc9aae41bd9f2f5da55847c5e30be838106e90.tar.bz2 linux-stable-62fc9aae41bd9f2f5da55847c5e30be838106e90.zip |
fuse: fix copy_file_range() in the writeback case
commit a2bc92362941006830afa3dfad6caec1f99acbf5 upstream.
Prior to sending COPY_FILE_RANGE to userspace filesystem, we must flush all
dirty pages in both the source and destination files.
This patch adds the missing flush of the source file.
Tested on libfuse-3.5.0 with:
libfuse/example/passthrough_ll /mnt/fuse/ -o writeback
libfuse/test/test_syscalls /mnt/fuse/tmp/test
Fixes: 88bc7d5097a1 ("fuse: add support for copy_file_range()")
Cc: <stable@vger.kernel.org> # v4.20
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/pstore/platform.c')
0 files changed, 0 insertions, 0 deletions