make dump_emit() use vfs_write() instead of banging at ->f_op->write directly
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Oct 2013 13:11:48 +0000 (09:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Nov 2013 05:16:26 +0000 (00:16 -0500)
commit2507a4fbd48a96bc4236e584252635f8539079df
treed31719bcacb80dc5b3ccfa99c28e5a2c92602aa6
parent1ad67015e619ba4e0b15ed0482d464292fedf263
make dump_emit() use vfs_write() instead of banging at ->f_op->write directly

... and deal with short writes properly - the output might be to pipe, after
all; as it is, e.g. no-MMU case of elf_fdpic coredump can write a whole lot
more than a page worth of data at one call.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/coredump.c