3 @@ -87,7 +87,6 @@ static void core_dump_file(u8 *valbuf, u
4 u32 append, u32 totallen, bool textmode)
6 struct file *filp_core = NULL;
9 u8 *buf = kmalloc(length * 3, GFP_KERNEL);
11 @@ -100,9 +99,6 @@ static void core_dump_file(u8 *valbuf, u
12 sprintf(file_name, "/dev/shm/coredump-%x-%x",
13 region, (region + totallen));
19 filp_core = filp_open(file_name, O_RDWR | O_APPEND, 0);
21 @@ -125,15 +121,15 @@ static void core_dump_file(u8 *valbuf, u
24 data_p += sprintf(data_p, "\n");
25 - vfs_write(filp_core, buf, strlen(buf),
27 + kernel_write(filp_core, buf, strlen(buf),
30 - vfs_write(filp_core, valbuf, length, &filp_core->f_pos);
31 + kernel_write(filp_core, valbuf, length,
34 filp_close(filp_core, current->files);