coredump: get rid of coredump_params->written

cprm->written is redundant with cprm->file->f_pos, so use that instead.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Omar Sandoval
2016-05-11 15:16:36 -07:00
committed by Al Viro
부모 88ae4ab980
커밋 a008393951
5개의 변경된 파일8개의 추가작업 그리고 10개의 파일을 삭제

파일 보기

@@ -137,6 +137,7 @@ static int spufs_arch_write_note(struct spu_context *ctx, int i,
char *name;
char fullname[80], *buf;
struct elf_note en;
size_t skip;
buf = (void *)get_zeroed_page(GFP_KERNEL);
if (!buf)
@@ -171,8 +172,8 @@ static int spufs_arch_write_note(struct spu_context *ctx, int i,
if (rc < 0)
goto out;
if (!dump_skip(cprm,
roundup(cprm->written - total + sz, 4) - cprm->written))
skip = roundup(cprm->file->f_pos - total + sz, 4) - cprm->file->f_pos;
if (!dump_skip(cprm, skip))
goto Eio;
out:
free_page((unsigned long)buf);