patch-2.4.5 linux/fs/proc/base.c
Next file: linux/fs/proc/generic.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Fri May 4 14:44:06 2001
- Orig file:
v2.4.4/linux/fs/proc/base.c
- Orig date:
Mon Mar 19 12:34:55 2001
diff -u --recursive --new-file v2.4.4/linux/fs/proc/base.c linux/fs/proc/base.c
@@ -586,7 +586,7 @@
struct pid_entry *p;
pid = inode->u.proc_i.task->pid;
- if (!inode->u.proc_i.task->p_pptr)
+ if (!pid)
return -ENOENT;
i = filp->f_pos;
switch (i) {
@@ -641,7 +641,7 @@
*/
inode->u.proc_i.task = task;
get_task_struct(task);
- if (!task->p_pptr)
+ if (!task->pid)
goto out_unlock;
inode->i_uid = 0;
@@ -673,7 +673,7 @@
*/
static int pid_base_revalidate(struct dentry * dentry, int flags)
{
- if (dentry->d_inode->u.proc_i.task->p_pptr)
+ if (dentry->d_inode->u.proc_i.task->pid)
return 1;
d_drop(dentry);
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)