[Devel] [PATCH] pidspace coda fs
sukadev at us.ibm.com
sukadev at us.ibm.com
Thu Feb 22 15:33:46 PST 2007
From: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Subject: [PATCH] pidspace coda fs
Use container-safe interfaces for pid and pgid in coda.
Signed-off-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Dave Hansen <haveblue at us.ibm.com>
Cc: Serge Hallyn <serue at us.ibm.com>
Cc: containers at lists.osdl.org
---
fs/coda/upcall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: lx26-20-mm1/fs/coda/upcall.c
===================================================================
--- lx26-20-mm1.orig/fs/coda/upcall.c 2007-02-16 15:44:56.000000000 -0800
+++ lx26-20-mm1/fs/coda/upcall.c 2007-02-16 15:45:25.000000000 -0800
@@ -52,8 +52,8 @@ static void *alloc_upcall(int opcode, in
return ERR_PTR(-ENOMEM);
inp->ih.opcode = opcode;
- inp->ih.pid = current->pid;
- inp->ih.pgid = process_group(current);
+ inp->ih.pid = pid_nr(task_pid(current));
+ inp->ih.pgid = pid_nr(task_pgrp(current));
#ifdef CONFIG_CODA_FS_OLD_API
memset(&inp->ih.cred, 0, sizeof(struct coda_cred));
inp->ih.cred.cr_fsuid = current->fsuid;
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
More information about the Devel
mailing list