Lines Matching refs:pol
63 extern void __mpol_put(struct mempolicy *pol);
64 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument
66 if (pol) in mpol_put()
67 __mpol_put(pol); in mpol_put()
74 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument
76 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref()
79 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
81 if (mpol_needs_cond_ref(pol)) in mpol_cond_put()
82 __mpol_put(pol); in mpol_cond_put()
85 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
86 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup() argument
88 if (pol) in mpol_dup()
89 pol = __mpol_dup(pol); in mpol_dup()
90 return pol; in mpol_dup()
95 static inline void mpol_get(struct mempolicy *pol) in mpol_get() argument
97 if (pol) in mpol_get()
98 atomic_inc(&pol->refcnt); in mpol_get()
172 extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol);
212 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
216 static inline void mpol_get(struct mempolicy *pol) in mpol_get() argument