Commit 3e3761f
committed
smb3: use filemap_write_and_wait_range instead of filemap_write_and_wait
When doing insert range and collapse range we should be
writing out the cached pages for the ranges affected but not
the whole file.
Fixes: c3a72bb ("smb3: Move the flush out of smb2_copychunk_range() into its callers")
Cc: [email protected]
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Reviewed-by: David Howells <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent 9c8b7a2 commit 3e3761f
2 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
1222 | | - | |
1223 | | - | |
1224 | 1222 | | |
1225 | 1223 | | |
1226 | 1224 | | |
| |||
1250 | 1248 | | |
1251 | 1249 | | |
1252 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1253 | 1257 | | |
1254 | 1258 | | |
1255 | 1259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3687 | 3687 | | |
3688 | 3688 | | |
3689 | 3689 | | |
3690 | | - | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
3691 | 3694 | | |
3692 | 3695 | | |
3693 | 3696 | | |
| |||
3738 | 3741 | | |
3739 | 3742 | | |
3740 | 3743 | | |
3741 | | - | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
3742 | 3747 | | |
3743 | 3748 | | |
3744 | 3749 | | |
| |||
0 commit comments