-
- Downloads
coredump: don't bother with do_truncate()
have dump_skip() just remember how much needs to be skipped,
leave actual seeks/writing zeroes to the next dump_emit()
or the end of coredump output, whichever comes first.
And instead of playing with do_truncate() in the end, just
write one NUL at the end of the last gap (if any).
Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- arch/powerpc/platforms/cell/spufs/coredump.c 1 addition, 2 deletionsarch/powerpc/platforms/cell/spufs/coredump.c
- fs/binfmt_elf.c 1 addition, 3 deletionsfs/binfmt_elf.c
- fs/binfmt_elf_fdpic.c 1 addition, 2 deletionsfs/binfmt_elf_fdpic.c
- fs/coredump.c 43 additions, 29 deletionsfs/coredump.c
- include/linux/binfmts.h 1 addition, 0 deletionsinclude/linux/binfmts.h
- include/linux/coredump.h 2 additions, 2 deletionsinclude/linux/coredump.h
Loading
Please register or sign in to comment