coredump: split out do_coredump() from vfs_coredump()

Make the function easier to follow and prepare for some of the following
changes.

Link: https://patch.msgid.link/20251103-work-creds-guards-prepare_creds-v1-8-b447b82f2c9b@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2025-11-03 15:57:34 +01:00
commit af9803d4b8
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2