From: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx> Subject: [PATCH] pidspace coda fs Use container-safe interfaces for pid and pgid in coda. Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx> Cc: Cedric Le Goater <clg@xxxxxxxxxx> Cc: Dave Hansen <haveblue@xxxxxxxxxx> Cc: Serge Hallyn <serue@xxxxxxxxxx> Cc: containers@xxxxxxxxxxxxxx --- 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@xxxxxxxxxxxxxx https://lists.osdl.org/mailman/listinfo/containers