Lines Matching refs:pol
65 extern void __mpol_put(struct mempolicy *pol);
66 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument
68 if (pol) in mpol_put()
69 __mpol_put(pol); in mpol_put()
76 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument
78 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref()
81 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
83 if (mpol_needs_cond_ref(pol)) in mpol_cond_put()
84 __mpol_put(pol); in mpol_cond_put()
87 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
88 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup() argument
90 if (pol) in mpol_dup()
91 pol = __mpol_dup(pol); in mpol_dup()
92 return pol; in mpol_dup()
97 static inline void mpol_get(struct mempolicy *pol) in mpol_get() argument
99 if (pol) in mpol_get()
100 atomic_inc(&pol->refcnt); in mpol_get()
182 extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol);
203 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
207 static inline void mpol_get(struct mempolicy *pol) in mpol_get() argument