aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/pid.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/pid.c')
-rw-r--r--kernel/pid.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/pid.c b/kernel/pid.c
index a32859c4a3cd..477691576b33 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -111,7 +111,7 @@ EXPORT_SYMBOL(is_container_init);
111 111
112static __cacheline_aligned_in_smp DEFINE_SPINLOCK(pidmap_lock); 112static __cacheline_aligned_in_smp DEFINE_SPINLOCK(pidmap_lock);
113 113
114static fastcall void free_pidmap(struct pid_namespace *pid_ns, int pid) 114static void free_pidmap(struct pid_namespace *pid_ns, int pid)
115{ 115{
116 struct pidmap *map = pid_ns->pidmap + pid / BITS_PER_PAGE; 116 struct pidmap *map = pid_ns->pidmap + pid / BITS_PER_PAGE;
117 int offset = pid & BITS_PER_PAGE_MASK; 117 int offset = pid & BITS_PER_PAGE_MASK;
@@ -198,7 +198,7 @@ int next_pidmap(struct pid_namespace *pid_ns, int last)
198 return -1; 198 return -1;
199} 199}
200 200
201fastcall void put_pid(struct pid *pid) 201void put_pid(struct pid *pid)
202{ 202{
203 struct pid_namespace *ns; 203 struct pid_namespace *ns;
204 204
@@ -220,7 +220,7 @@ static void delayed_put_pid(struct rcu_head *rhp)
220 put_pid(pid); 220 put_pid(pid);
221} 221}
222 222
223fastcall void free_pid(struct pid *pid) 223void free_pid(struct pid *pid)
224{ 224{
225 /* We can be called with write_lock_irq(&tasklist_lock) held */ 225 /* We can be called with write_lock_irq(&tasklist_lock) held */
226 int i; 226 int i;
@@ -286,7 +286,7 @@ out_free:
286 goto out; 286 goto out;
287} 287}
288 288
289struct pid * fastcall find_pid_ns(int nr, struct pid_namespace *ns) 289struct pid *find_pid_ns(int nr, struct pid_namespace *ns)
290{ 290{
291 struct hlist_node *elem; 291 struct hlist_node *elem;
292 struct upid *pnr; 292 struct upid *pnr;
@@ -316,7 +316,7 @@ EXPORT_SYMBOL_GPL(find_pid);
316/* 316/*
317 * attach_pid() must be called with the tasklist_lock write-held. 317 * attach_pid() must be called with the tasklist_lock write-held.
318 */ 318 */
319int fastcall attach_pid(struct task_struct *task, enum pid_type type, 319int attach_pid(struct task_struct *task, enum pid_type type,
320 struct pid *pid) 320 struct pid *pid)
321{ 321{
322 struct pid_link *link; 322 struct pid_link *link;
@@ -328,7 +328,7 @@ int fastcall attach_pid(struct task_struct *task, enum pid_type type,
328 return 0; 328 return 0;
329} 329}
330 330
331void fastcall detach_pid(struct task_struct *task, enum pid_type type) 331void detach_pid(struct task_struct *task, enum pid_type type)
332{ 332{
333 struct pid_link *link; 333 struct pid_link *link;
334 struct pid *pid; 334 struct pid *pid;
@@ -348,7 +348,7 @@ void fastcall detach_pid(struct task_struct *task, enum pid_type type)
348} 348}
349 349
350/* transfer_pid is an optimization of attach_pid(new), detach_pid(old) */ 350/* transfer_pid is an optimization of attach_pid(new), detach_pid(old) */
351void fastcall transfer_pid(struct task_struct *old, struct task_struct *new, 351void transfer_pid(struct task_struct *old, struct task_struct *new,
352 enum pid_type type) 352 enum pid_type type)
353{ 353{
354 new->pids[type].pid = old->pids[type].pid; 354 new->pids[type].pid = old->pids[type].pid;
@@ -356,7 +356,7 @@ void fastcall transfer_pid(struct task_struct *old, struct task_struct *new,
356 old->pids[type].pid = NULL; 356 old->pids[type].pid = NULL;
357} 357}
358 358
359struct task_struct * fastcall pid_task(struct pid *pid, enum pid_type type) 359struct task_struct *pid_task(struct pid *pid, enum pid_type type)
360{ 360{
361 struct task_struct *result = NULL; 361 struct task_struct *result = NULL;
362 if (pid) { 362 if (pid) {
@@ -408,7 +408,7 @@ struct pid *get_task_pid(struct task_struct *task, enum pid_type type)
408 return pid; 408 return pid;
409} 409}
410 410
411struct task_struct *fastcall get_pid_task(struct pid *pid, enum pid_type type) 411struct task_struct *get_pid_task(struct pid *pid, enum pid_type type)
412{ 412{
413 struct task_struct *result; 413 struct task_struct *result;
414 rcu_read_lock(); 414 rcu_read_lock();