summaryrefslogtreecommitdiff
path: root/include/linux/binfmts.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-03-08 09:16:37 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2021-03-08 10:21:11 -0500
commitd0f1088b31db2d03497a74ca67755df5515f8ff4 (patch)
tree8252b8cb97ae2041ea26a72490dd94466a936758 /include/linux/binfmts.h
parenta38fd8748464831584a19438cbb3082b5a2dab15 (diff)
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 'include/linux/binfmts.h')
-rw-r--r--include/linux/binfmts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h
index 0abd93efc181..049cf9421d83 100644
--- a/include/linux/binfmts.h
+++ b/include/linux/binfmts.h
@@ -86,6 +86,7 @@ struct coredump_params {
unsigned long mm_flags;
loff_t written;
loff_t pos;
+ loff_t to_skip;
};
/*