Lines Matching refs:pol

64 extern void __mpol_put(struct mempolicy *pol);
65 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument
67 if (pol) in mpol_put()
68 __mpol_put(pol); in mpol_put()
75 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument
77 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref()
80 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
82 if (mpol_needs_cond_ref(pol)) in mpol_cond_put()
83 __mpol_put(pol); in mpol_cond_put()
86 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
87 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup() argument
89 if (pol) in mpol_dup()
90 pol = __mpol_dup(pol); in mpol_dup()
91 return pol; in mpol_dup()
94 static inline void mpol_get(struct mempolicy *pol) in mpol_get() argument
96 if (pol) in mpol_get()
97 atomic_inc(&pol->refcnt); in mpol_get()
165 extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol);
174 static inline bool mpol_is_preferred_many(struct mempolicy *pol) in mpol_is_preferred_many() argument
176 return (pol->mode == MPOL_PREFERRED_MANY); in mpol_is_preferred_many()
195 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument
199 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
203 static inline void mpol_get(struct mempolicy *pol) in mpol_get() argument
296 static inline bool mpol_is_preferred_many(struct mempolicy *pol) in mpol_is_preferred_many() argument