dump_emit(): use __kernel_write(), not vfs_write()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Nov 2013 02:58:33 +0000 (21:58 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Nov 2013 03:04:09 +0000 (22:04 -0500)
the caller has already done file_start_write()...

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

index a2856f7bb613b91c8691844f1781086ff31f5611..bc3fbcd32558fd61823b126997ace2785d7bac21 100644 (file)
@@ -695,7 +695,7 @@ int dump_emit(struct coredump_params *cprm, const void *addr, int nr)
        while (nr) {
                if (dump_interrupted())
                        return 0;
-               n = vfs_write(file, addr, nr, &pos);
+               n = __kernel_write(file, addr, nr, &pos);
                if (n <= 0)
                        return 0;
                file->f_pos = pos;