Skip to content

Commit fb4366b

Browse files
committed
coredump: rename format_corename()
It's not really about the name anymore. It parses very distinct information. Reflect that in the name. Link: https://lore.kernel.org/20250612-work-coredump-massage-v1-1-315c0c34ba94@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent e04f97c commit fb4366b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

fs/coredump.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,13 @@ static int cn_print_exe_file(struct core_name *cn, bool name_only)
225225
return ret;
226226
}
227227

228-
/* format_corename will inspect the pattern parameter, and output a
229-
* name into corename, which must have space for at least
230-
* CORENAME_MAX_SIZE bytes plus one byte for the zero terminator.
228+
/*
229+
* coredump_parse will inspect the pattern parameter, and output a name
230+
* into corename, which must have space for at least CORENAME_MAX_SIZE
231+
* bytes plus one byte for the zero terminator.
231232
*/
232-
static int format_corename(struct core_name *cn, struct coredump_params *cprm,
233-
size_t **argv, int *argc)
233+
static int coredump_parse(struct core_name *cn, struct coredump_params *cprm,
234+
size_t **argv, int *argc)
234235
{
235236
const struct cred *cred = current_cred();
236237
const char *pat_ptr = core_pattern;
@@ -910,7 +911,7 @@ void do_coredump(const kernel_siginfo_t *siginfo)
910911

911912
old_cred = override_creds(cred);
912913

913-
retval = format_corename(&cn, &cprm, &argv, &argc);
914+
retval = coredump_parse(&cn, &cprm, &argv, &argc);
914915
if (retval < 0) {
915916
coredump_report_failure("format_corename failed, aborting core");
916917
goto fail_unlock;

0 commit comments

Comments
 (0)