coredump: rename do_coredump() to vfs_coredump()

Align the naming with the rest of our helpers exposed
outside of core vfs.

Link: https://lore.kernel.org/20250612-work-coredump-massage-v1-9-315c0c34ba94@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
pull/1309/head
Christian Brauner 2025-06-12 15:25:23 +02:00
parent 8a25350fa4
commit 70e3ee3128
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2
5 changed files with 6 additions and 6 deletions

View File

@ -555,5 +555,5 @@ the VFS, and that can be done by calling into such as ``vfs_mkdir()`` with a
different set of credentials. This is done in the following places:
* ``sys_faccessat()``.
* ``do_coredump()``.
* ``vfs_coredump()``.
* nfs4recover.c.

View File

@ -475,5 +475,5 @@ const指针上操作因此不需要进行类型转换但需要临时放弃
``vfs_mkdir()`` 来实现。以下是一些进行此操作的位置:
* ``sys_faccessat()``.
* ``do_coredump()``.
* ``vfs_coredump()``.
* nfs4recover.c.

View File

@ -865,7 +865,7 @@ static inline void coredump_sock_wait(struct file *file) { }
static inline void coredump_sock_shutdown(struct file *file) { }
#endif
void do_coredump(const kernel_siginfo_t *siginfo)
void vfs_coredump(const kernel_siginfo_t *siginfo)
{
struct core_state core_state;
struct core_name cn;

View File

@ -43,7 +43,7 @@ extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
extern int dump_align(struct coredump_params *cprm, int align);
int dump_user_range(struct coredump_params *cprm, unsigned long start,
unsigned long len);
extern void do_coredump(const kernel_siginfo_t *siginfo);
extern void vfs_coredump(const kernel_siginfo_t *siginfo);
/*
* Logging for the coredump code, ratelimited.
@ -63,7 +63,7 @@ extern void do_coredump(const kernel_siginfo_t *siginfo);
#define coredump_report_failure(fmt, ...) __COREDUMP_PRINTK(KERN_WARNING, fmt, ##__VA_ARGS__)
#else
static inline void do_coredump(const kernel_siginfo_t *siginfo) {}
static inline void vfs_coredump(const kernel_siginfo_t *siginfo) {}
#define coredump_report(...)
#define coredump_report_failure(...)

View File

@ -3016,7 +3016,7 @@ relock:
* first and our do_group_exit call below will use
* that value and ignore the one we pass it.
*/
do_coredump(&ksig->info);
vfs_coredump(&ksig->info);
}
/*