mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
trimming task_work: kill ->data
get rid of the only user of ->data; this is _not_ the final variant - in the end we'll have task_work and rcu_head identical and just use cred->rcu, at which point the separate allocation will be gone completely. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7266702805
commit
41f9d29f09
5 changed files with 17 additions and 12 deletions
|
@ -10,14 +10,12 @@ typedef void (*task_work_func_t)(struct task_work *);
|
|||
struct task_work {
|
||||
struct hlist_node hlist;
|
||||
task_work_func_t func;
|
||||
void *data;
|
||||
};
|
||||
|
||||
static inline void
|
||||
init_task_work(struct task_work *twork, task_work_func_t func, void *data)
|
||||
init_task_work(struct task_work *twork, task_work_func_t func)
|
||||
{
|
||||
twork->func = func;
|
||||
twork->data = data;
|
||||
}
|
||||
|
||||
int task_work_add(struct task_struct *task, struct task_work *twork, bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue