Lines Matching +full:3 +full:ns

23  *  lost the old acct_file. 3/10/98, Al Viro.
68 static int acct_parm[3] = {4, 2, 30};
78 .maxlen = 3*sizeof(int),
105 struct pid_namespace *ns; member
159 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get() argument
165 res = to_acct(READ_ONCE(ns->bacct)); in acct_get()
177 if (res != to_acct(READ_ONCE(ns->bacct))) { in acct_get()
196 cmpxchg(&acct->ns->bacct, pin, NULL); in acct_pin_kill()
220 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on() local
268 acct->ns = ns; in acct_on()
276 old = xchg(&ns->bacct, &acct->pin); in acct_on()
314 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns() argument
317 pin_kill(ns->bacct); in acct_exit_ns()
325 * is a 13-bit fraction with a 3-bit (base 8) exponent.
329 #define EXPSIZE 3 /* Base 8 (3 bit) exponent. */
339 value >>= EXPSIZE; /* Base 8 exponent == 3 bit shift. */ in encode_comp_t()
403 #elif ACCT_VERSION == 3
467 #if ACCT_VERSION == 3 in fill_ac()
508 #elif ACCT_VERSION == 3 in fill_ac()
510 struct pid_namespace *ns = acct->ns; in fill_ac() local
512 ac->ac_pid = task_tgid_nr_ns(current, ns); in fill_ac()
514 ac->ac_ppid = task_tgid_nr_ns(rcu_dereference(current->real_parent), ns); in fill_ac()
602 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process() argument
604 for ( ; ns; ns = ns->parent) { in slow_acct_process()
605 struct bsd_acct_struct *acct = acct_get(ns); in slow_acct_process()
619 struct pid_namespace *ns; in acct_process() local
626 for (ns = task_active_pid_ns(current); ns != NULL; ns = ns->parent) { in acct_process()
627 if (ns->bacct) in acct_process()
630 if (unlikely(ns)) in acct_process()
631 slow_acct_process(ns); in acct_process()