mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +00:00
[PATCH] proc: Use struct pid not struct task_ref
Incrementally update my proc-dont-lock-task_structs-indefinitely patches so that they work with struct pid instead of struct task_ref. Mostly this is a straight 1-1 substitution. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
99f8955183
commit
13b41b0949
6 changed files with 18 additions and 20 deletions
|
@ -62,7 +62,7 @@ static void proc_delete_inode(struct inode *inode)
|
|||
truncate_inode_pages(&inode->i_data, 0);
|
||||
|
||||
/* Stop tracking associated processes */
|
||||
tref_put(PROC_I(inode)->tref);
|
||||
put_pid(PROC_I(inode)->pid);
|
||||
|
||||
/* Let go of any associated proc directory entry */
|
||||
de = PROC_I(inode)->pde;
|
||||
|
@ -91,7 +91,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb)
|
|||
ei = (struct proc_inode *)kmem_cache_alloc(proc_inode_cachep, SLAB_KERNEL);
|
||||
if (!ei)
|
||||
return NULL;
|
||||
ei->tref = NULL;
|
||||
ei->pid = NULL;
|
||||
ei->fd = 0;
|
||||
ei->op.proc_get_link = NULL;
|
||||
ei->pde = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue