Merge branch 'asoc-5.3' into asoc-5.4
[linux-2.6-microblaze.git] / include / linux / pid.h
index 1484db6..2a83e43 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <linux/rculist.h>
 #include <linux/wait.h>
+#include <linux/refcount.h>
 
 enum pid_type
 {
@@ -57,7 +58,7 @@ struct upid {
 
 struct pid
 {
-       atomic_t count;
+       refcount_t count;
        unsigned int level;
        /* lists of tasks that use this pid */
        struct hlist_head tasks[PIDTYPE_MAX];
@@ -74,7 +75,7 @@ extern const struct file_operations pidfd_fops;
 static inline struct pid *get_pid(struct pid *pid)
 {
        if (pid)
-               atomic_inc(&pid->count);
+               refcount_inc(&pid->count);
        return pid;
 }