aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorGravatar Al Viro <viro@zeniv.linux.org.uk> 2020-03-08 09:16:37 -0400
committerGravatar Al Viro <viro@zeniv.linux.org.uk> 2021-03-08 10:21:11 -0500
commitd0f1088b31db2d03497a74ca67755df5515f8ff4 (patch)
tree8252b8cb97ae2041ea26a72490dd94466a936758 /init
parentLinux 5.12-rc2 (diff)
downloadlinux-d0f1088b31db2d03497a74ca67755df5515f8ff4.tar.gz
linux-d0f1088b31db2d03497a74ca67755df5515f8ff4.tar.bz2
linux-d0f1088b31db2d03497a74ca67755df5515f8ff4.zip
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions