Commit a2bc923
Miklos Szeredi
fuse: fix copy_file_range() in the writeback case
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: 88bc7d5 ("fuse: add support for copy_file_range()")
Cc: <stable@vger.kernel.org> # v4.20
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>1 parent 4a2abf9 commit a2bc923
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3110 | 3110 | | |
3111 | 3111 | | |
3112 | 3112 | | |
| 3113 | + | |
3113 | 3114 | | |
3114 | 3115 | | |
3115 | 3116 | | |
| |||
3133 | 3134 | | |
3134 | 3135 | | |
3135 | 3136 | | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
3136 | 3148 | | |
3137 | 3149 | | |
3138 | 3150 | | |
| |||
0 commit comments