diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-15 21:58:33 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-15 22:04:09 -0500 |
commit | 52da40ae67f6192a3bf70a98cb560e1423554953 (patch) | |
tree | 4a6bcf6b80153bf47b346d921f0502174e170368 | |
parent | db51242d89b3059a46a3cf2f3339f8cd975cb954 (diff) |
dump_emit(): use __kernel_write(), not vfs_write()
the caller has already done file_start_write()...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/coredump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coredump.c b/fs/coredump.c index a2856f7bb613..bc3fbcd32558 100644 --- a/fs/coredump.c +++ b/fs/coredump.c | |||
@@ -695,7 +695,7 @@ int dump_emit(struct coredump_params *cprm, const void *addr, int nr) | |||
695 | while (nr) { | 695 | while (nr) { |
696 | if (dump_interrupted()) | 696 | if (dump_interrupted()) |
697 | return 0; | 697 | return 0; |
698 | n = vfs_write(file, addr, nr, &pos); | 698 | n = __kernel_write(file, addr, nr, &pos); |
699 | if (n <= 0) | 699 | if (n <= 0) |
700 | return 0; | 700 | return 0; |
701 | file->f_pos = pos; | 701 | file->f_pos = pos; |