OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Use struct pid parameter in copy_process()
Re: [PATCH] Use struct pid parameter in copy_process() [message #17524 is a reply to message #17507] Fri, 23 February 2007 06:40 Go to previous messageGo to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
sukadev@us.ibm.com writes:

> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
> Subject: [PATCH] Use struct pid parameter in copy_process()
>
> Modify copy_process() to take a struct pid * parameter instead of a pid_t.
> This simplifies the code a bit and also avoids having to call find_pid()
> to convert the pid_t to a struct pid.

I would recommend doing this in 2 steps:
- One patch to kill the likely(p->pid).
- And another to kill change the pid argument.

The indentation change makes it really hard to see what
the change in pid argument buys.

This also needs to be part of the patchset that adds a dummy
struct pid to init, to make the dependency clear.

Also given that you change the type there is no need to change
the name of the pid parameter to copy process, and the spid
name just looks strange.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] ecryptfs: handles AOP_TRUNCATED_PAGE better
Next Topic: [RFC][PATCH][0/4] Memory controller (RSS Control) (
Goto Forum:
  


Current Time: Sun Aug 17 04:07:30 GMT 2025

Total time taken to generate the page: 0.12210 seconds