generic_perform_write()/iomap_write_actor(): saner logics for short copy
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 31 May 2021 04:32:44 +0000 (00:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Jun 2021 21:50:44 +0000 (17:50 -0400)
commitbc1bb416bbb9203e250f5c49aaf1d11b5d9c8adb
tree2d978ab21227c4f1e9de120f1ecab5b110e56144
parent9067931236651c8bde847d17a2f862d052e672b7
generic_perform_write()/iomap_write_actor(): saner logics for short copy

if we run into a short copy and ->write_end() refuses to advance at all,
use the amount we'd managed to copy for the next iteration to handle.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/iomap/buffered-io.c
mm/filemap.c