Lines Matching refs:pol
62 extern void __mpol_put(struct mempolicy *pol);
63 static inline void mpol_put(struct mempolicy *pol) in mpol_put() argument
65 if (pol) in mpol_put()
66 __mpol_put(pol); in mpol_put()
73 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref() argument
75 return (pol && (pol->flags & MPOL_F_SHARED)); in mpol_needs_cond_ref()
78 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
80 if (mpol_needs_cond_ref(pol)) in mpol_cond_put()
81 __mpol_put(pol); in mpol_cond_put()
84 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
85 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup() argument
87 if (pol) in mpol_dup()
88 pol = __mpol_dup(pol); in mpol_dup()
89 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()
172 extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol);
180 static inline bool mpol_is_preferred_many(struct mempolicy *pol) in mpol_is_preferred_many() argument
182 return (pol->mode == MPOL_PREFERRED_MANY); in mpol_is_preferred_many()
200 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put() argument
204 static inline void mpol_get(struct mempolicy *pol) in mpol_get() argument
291 static inline bool mpol_is_preferred_many(struct mempolicy *pol) in mpol_is_preferred_many() argument