public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>, jaharkes@cs.cmu.edu
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
	Pavel Emelyanov <xemul@openvz.org>,
	Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH] coda: alloc_upcall: s/task_pgrp_nr/task_pgrp_vnr/
Date: Sun, 18 Jan 2009 08:34:53 +0100	[thread overview]
Message-ID: <20090118073453.GA714@redhat.com> (raw)

Needs an ack from maintaner, I do not know where coda_in_hdr->pgid is used.

alloc_upcall() is the last user of deprecated task_pgrp_nr(), change it
to use task_pgrp_vnr() instead. Or it really needs the pid_t from the global
namespace?

Signed-off-by: Oleg Nesterov <oleg@redhat.com>

--- CUR/fs/coda/upcall.c~3_CODA	2009-01-12 23:07:46.000000000 +0100
+++ CUR/fs/coda/upcall.c	2009-01-18 08:21:26.000000000 +0100
@@ -51,7 +51,7 @@ static void *alloc_upcall(int opcode, in
 
         inp->ih.opcode = opcode;
 	inp->ih.pid = current->pid;
-	inp->ih.pgid = task_pgrp_nr(current);
+	inp->ih.pgid = task_pgrp_vnr(current);
 	inp->ih.uid = current_fsuid();
 
 	return (void*)inp;


             reply	other threads:[~2009-01-18  7:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18  7:34 Oleg Nesterov [this message]
2009-01-21  5:03 ` [PATCH] coda: alloc_upcall: s/task_pgrp_nr/task_pgrp_vnr/ Jan Harkes
2009-01-21  6:03   ` Eric W. Biederman
2009-01-21 13:44   ` Oleg Nesterov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090118073453.GA714@redhat.com \
    --to=oleg@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=ebiederm@xmission.com \
    --cc=jaharkes@cs.cmu.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sukadev@linux.vnet.ibm.com \
    --cc=xemul@openvz.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox