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
parent
8a25350fa4
commit
70e3ee3128
|
|
@ -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:
|
different set of credentials. This is done in the following places:
|
||||||
|
|
||||||
* ``sys_faccessat()``.
|
* ``sys_faccessat()``.
|
||||||
* ``do_coredump()``.
|
* ``vfs_coredump()``.
|
||||||
* nfs4recover.c.
|
* nfs4recover.c.
|
||||||
|
|
|
||||||
|
|
@ -475,5 +475,5 @@ const指针上操作,因此不需要进行类型转换,但需要临时放弃
|
||||||
如 ``vfs_mkdir()`` 来实现。以下是一些进行此操作的位置:
|
如 ``vfs_mkdir()`` 来实现。以下是一些进行此操作的位置:
|
||||||
|
|
||||||
* ``sys_faccessat()``.
|
* ``sys_faccessat()``.
|
||||||
* ``do_coredump()``.
|
* ``vfs_coredump()``.
|
||||||
* nfs4recover.c.
|
* nfs4recover.c.
|
||||||
|
|
|
||||||
|
|
@ -865,7 +865,7 @@ static inline void coredump_sock_wait(struct file *file) { }
|
||||||
static inline void coredump_sock_shutdown(struct file *file) { }
|
static inline void coredump_sock_shutdown(struct file *file) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void do_coredump(const kernel_siginfo_t *siginfo)
|
void vfs_coredump(const kernel_siginfo_t *siginfo)
|
||||||
{
|
{
|
||||||
struct core_state core_state;
|
struct core_state core_state;
|
||||||
struct core_name cn;
|
struct core_name cn;
|
||||||
|
|
|
||||||
|
|
@ -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);
|
extern int dump_align(struct coredump_params *cprm, int align);
|
||||||
int dump_user_range(struct coredump_params *cprm, unsigned long start,
|
int dump_user_range(struct coredump_params *cprm, unsigned long start,
|
||||||
unsigned long len);
|
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.
|
* 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__)
|
#define coredump_report_failure(fmt, ...) __COREDUMP_PRINTK(KERN_WARNING, fmt, ##__VA_ARGS__)
|
||||||
|
|
||||||
#else
|
#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(...)
|
||||||
#define coredump_report_failure(...)
|
#define coredump_report_failure(...)
|
||||||
|
|
|
||||||
|
|
@ -3016,7 +3016,7 @@ relock:
|
||||||
* first and our do_group_exit call below will use
|
* first and our do_group_exit call below will use
|
||||||
* that value and ignore the one we pass it.
|
* that value and ignore the one we pass it.
|
||||||
*/
|
*/
|
||||||
do_coredump(&ksig->info);
|
vfs_coredump(&ksig->info);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue