]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/pid.c
locking/atomic, kref: Add KREF_INIT()
[mirror_ubuntu-artful-kernel.git] / kernel / pid.c
index f66162f2359bfb2e85777ce4c5faed637a15db60..0291804151b587e880ed6e2072bc4217c4694db5 100644 (file)
@@ -68,9 +68,7 @@ static inline int mk_pid(struct pid_namespace *pid_ns,
  * the scheme scales to up to 4 million PIDs, runtime.
  */
 struct pid_namespace init_pid_ns = {
-       .kref = {
-               .refcount       = ATOMIC_INIT(2),
-       },
+       .kref = KREF_INIT(2),
        .pidmap = {
                [ 0 ... PIDMAP_ENTRIES-1] = { ATOMIC_INIT(BITS_PER_PAGE), NULL }
        },