mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
ptrace: kill task_ptrace()
task_ptrace(task) simply dereferences task->ptrace and isn't even used consistently only adding confusion. Kill it and directly access ->ptrace instead. This doesn't introduce any behavior change. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Oleg Nesterov <oleg@redhat.com>
This commit is contained in:
parent
544b2c91a9
commit
d21142ece4
5 changed files with 20 additions and 32 deletions
|
@ -145,17 +145,6 @@ int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr,
|
|||
int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr,
|
||||
unsigned long data);
|
||||
|
||||
/**
|
||||
* task_ptrace - return %PT_* flags that apply to a task
|
||||
* @task: pointer to &task_struct in question
|
||||
*
|
||||
* Returns the %PT_* flags that apply to @task.
|
||||
*/
|
||||
static inline int task_ptrace(struct task_struct *task)
|
||||
{
|
||||
return task->ptrace;
|
||||
}
|
||||
|
||||
/**
|
||||
* ptrace_event - possibly stop for a ptrace event notification
|
||||
* @mask: %PT_* bit to check in @current->ptrace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue