Lines Matching refs:flags
152 unsigned long flags);
191 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
193 if (unlikely(current->flags & in current_gfp_context()
199 if (current->flags & PF_MEMALLOC_NOIO) in current_gfp_context()
200 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
201 else if (current->flags & PF_MEMALLOC_NOFS) in current_gfp_context()
202 flags &= ~__GFP_FS; in current_gfp_context()
204 if (current->flags & PF_MEMALLOC_NOCMA) in current_gfp_context()
205 flags &= ~__GFP_MOVABLE; in current_gfp_context()
208 return flags; in current_gfp_context()
236 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
237 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
238 return flags; in memalloc_noio_save()
249 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
251 current->flags = (current->flags & ~PF_MEMALLOC_NOIO) | flags; in memalloc_noio_restore()
267 unsigned int flags = current->flags & PF_MEMALLOC_NOFS; in memalloc_nofs_save() local
268 current->flags |= PF_MEMALLOC_NOFS; in memalloc_nofs_save()
269 return flags; in memalloc_nofs_save()
280 static inline void memalloc_nofs_restore(unsigned int flags) in memalloc_nofs_restore() argument
282 current->flags = (current->flags & ~PF_MEMALLOC_NOFS) | flags; in memalloc_nofs_restore()
287 unsigned int flags = current->flags & PF_MEMALLOC; in memalloc_noreclaim_save() local
288 current->flags |= PF_MEMALLOC; in memalloc_noreclaim_save()
289 return flags; in memalloc_noreclaim_save()
292 static inline void memalloc_noreclaim_restore(unsigned int flags) in memalloc_noreclaim_restore() argument
294 current->flags = (current->flags & ~PF_MEMALLOC) | flags; in memalloc_noreclaim_restore()
300 unsigned int flags = current->flags & PF_MEMALLOC_NOCMA; in memalloc_nocma_save() local
302 current->flags |= PF_MEMALLOC_NOCMA; in memalloc_nocma_save()
303 return flags; in memalloc_nocma_save()
306 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument
308 current->flags = (current->flags & ~PF_MEMALLOC_NOCMA) | flags; in memalloc_nocma_restore()
316 static inline void memalloc_nocma_restore(unsigned int flags) in memalloc_nocma_restore() argument